zoukankan      html  css  js  c++  java
  • amfphp中文乱码解决方法

     我觉得全部用utf8编码比较好~

     1.9版本:

    1.mysql的校对字符设置为utf8
    2.打开gateway.php,找到第127行,修改为 $gateway->setCharsetHandler("none", "ISO-8859-1", "ISO-8859-1");
    3.在php读取数据库前加上 mysql_query("SET NAMES utf8");
    这样就ok!!

     2.1版本

    amfphp\plugins\amfphpcharsetconverter.php
    里面的__construct做如下改动, 对中文支持

    $this->clientCharset = "utf-8";
    $this->phpCharset = "gb2312";
    $this->method = self::METHOD_ICONV;

    不确定会不会有别的后果, 主要让类触发解释

  • 相关阅读:
    IEnumerator & IEnumerable
    GameObject.Active
    Unity3D的四种坐标系
    gvim
    Platform Dependent Compilation
    delegate
    new 约束
    UIPanel
    UIButton
    UISprite
  • 原文地址:https://www.cnblogs.com/bulolo/p/2748905.html
Copyright © 2011-2022 走看看