[英]Facebook share description encoding weirdness
On this link , the meta description from http://www.dontforgetanniversary.com has encoding problems with accents. 在此链接上 ,来自http://www.dontforgetanniversary.com的元描述具有重音的编码问题。
I still have tho. 我还有。
I wonder where it could come from. 我想知道它可能来自哪里。
I tested your domain with the URL Linter and definitely see some issues with character encoding. 我使用URL Linter测试了您的域名,并且肯定会看到一些字符编码问题。
Searching the bug database I found this one that indicates a BOM might be the problem. 搜索bug数据库我发现这个表明BOM可能是问题所在。
So I loaded up your page in Charles and looked at the bytes of the response. 所以我在Charles中加载了你的页面并查看了响应的字节。 Sure enough, the first three bytes of the response are
EF BB BF
, the UTF-8 encoding of the BOM . 果然,响应的前三个字节是
EF BB BF
, 即BOM的UTF-8编码 。
Remove the BOM from your files and you're good to go. 从文件中删除BOM,你很高兴。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.