农民 发表于 2024-10-12 15:14:48

Some bytes have been replaced with the Unicode substitution character

需要修改一较旧的网页代码,当打开时,却出现异常提示:
https://img2024.cnblogs.com/blog/28036/202410/28036-20241012141649287-38319499.png
 
Some bytes have been replaced with the Unicode substitution <br>character while loading file 【文档路径】 with <br>Unicode(UTF-8) encoding. Saving the file will not preserve the <br>original file contents.<br><br>点“OK”,文档是可以打开,但是一些中文不能正常显示,如下箭头所指。
https://img2024.cnblogs.com/blog/28036/202410/28036-20241012142228433-712433337.png 
如何办? 新建与较新的文档却没有这种情况。说明确定开发的电脑是支持UTF-8的。<br>不过,还是得检查电脑的设置。<br>打开Control Planel--> Clock and Region --> Region --> open "Administrative" tab --><br>click "Change system locale..." button -->https://img2024.cnblogs.com/blog/28036/202410/28036-20241012143611537-1942859570.png

把上面的Beta: Use Unicode UTF-8 for worldwide language support选项去选。
https://img2024.cnblogs.com/blog/28036/202410/28036-20241012143843837-1232073793.png
 
系统提示重启,设置才会生效。

再次打开文档,显示正常:


https://img2024.cnblogs.com/blog/28036/202410/28036-20241012144125048-963170661.png
 

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: Some bytes have been replaced with the Unicode substitution character