• utf-8和utf8的区别


    utf-8 utf8 的区别与使用:

      "UTF-8" 是标准写法php 在 Windows 系统里的英文不区分大小写,所以也可以写成 "utf-8"。"UTF-8" 也可以把中间的"-"省略,写成 "UTF8"。一般程序都能识别,但也有例外,为了严格一点,最好用标准的大写"UTF-8"。

      但是,数据库中只能使用"utf8"(如MySQL), 在MySQL的命令模式中只能使用"utf8",不能使用"utf-8",也就是说PHP程序中只能使用 "set names utf8(不加小横杠)",如果你加了"-"此行命令将不会生效;但是 PHP 的header 中却要加上"-",因为浏览器不认识没杠的"utf8"

      

  • 相关阅读:
    Cyber Security
    Cyber Security
    Cyber Security
    Cyber Security
    Balanced Number HDU
    Round Numbers POJ
    Bomb HDU
    不要62 HDU
    Making the Grade POJ
    You Are the One HDU
  • 原文地址:https://www.cnblogs.com/zzp-biog/p/9744874.html
Copyright © 2020-2023  润新知