开发者

UTF-8 no BOM gets strange random characters around site

开发者 https://www.devze.com 2023-03-28 17:41 出处:网络
I\'m saving my files with UTF-8 with no BOM to get around \"headers already sent\" issue. However I get strange characters in the whole site, I don\'t know why since saving files the same in other sit

I'm saving my files with UTF-8 with no BOM to get around "headers already sent" issue. However I get strange characters in the whole site, I don't know why since saving files the same in other sites don't cause the same issue.

I get this:  a lot of times 开发者_如何转开发in random spots of my site and some special characters are displayed incorrectly.

http://chusmix.com/?ciudad=Pilar

How can I fix this?


 is the BOM so it probably hasn't been removed properly. To completely remove it, you could batch process all your files - check if the first characters match the BOM and if so, remove it. There are plenty of scripts on the internet to do that. For example: Using awk to remove the Byte-order mark

0

精彩评论

暂无评论...
验证码 换一张
取 消