heckthisplace
V2EX  ›  问与答

新版phpMyAdmin中文内容为显示不正常.

  •  
  •   heckthisplace · Jan 3, 2012 · 4678 views
    This topic created in 5245 days ago, the information mentioned may be changed or developed.
    在新版phpmyadmin的数据表内容浏览中.

    浏览模式中,表中某个字段内容为中文:e7aea1e79086e59198
    插入模式中,打开编辑后为正常状态:管理员

    php读取正常.
    这点特性是因为什么?

    数据表是varchar(16) utf8_bin尝试改变后均无效.

    phpMyAdmin Version: 3.4.8
    3 replies    1970-01-01 08:00:00 +08:00
    benzhe
        1
    benzhe  
       Jan 3, 2012
    在3.4.9没办法重现上面的情况,但e7aea1e79086e59198是hex的结果,可以试一下:
    select unhex('e7aea1e79086e59198')

    然后去除结果上面option:
    Show binary contents as HEX
    的勾
    heckthisplace
        2
    heckthisplace  
    OP
       Jan 4, 2012
    @benzhe 好的,我去升级之,感谢!
    heckthisplace
        3
    heckthisplace  
    OP
       Jan 4, 2012
    @benzhe 貌似还是不行,找了资料说写config
    增加:$cfg['DisplayBinaryAsHex'] = false;
    结果仍然无效.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5522 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 09:11 · PVG 17:11 · LAX 02:11 · JFK 05:11
    ♥ Do have faith in what you're doing.