php表单乱码的解决办法:1、全部使用utf-8;2、文件存储为“utf-8 without bom”头;3、数据库使用“utf-8 general ci”;4、url中的中文要rawurlencode;5、解析时不要decode。
方法:
1, 全部使用utf-8;
2, 文件存储为utf-8 without bom头;
3, 数据库使用utf-8 general ci;
4, url中的中文要rawurlencode;
5, 解析时不要decode;
上一篇:php怎么去掉字符串中的字符串
下一篇:mysql怎样返回查询总数