将HTML编码从UTF-8切换到UTF-16可能会出错? [英] What could go wrong in switching HTML encoding from UTF-8 to UTF-16?
本文介绍了将HTML编码从UTF-8切换到UTF-16可能会出错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从UTF-8到UTF-16的HTML编码变化有什么意义?我想知道你对这个问题的看法。在进行这样的改变之前,是否有需要考虑的事情?
What are the implications of a change from UTF-8 to UTF-16 for HTML encoding? I would like to know your thoughts on the issue. Are there things I need to think of before making such a change?
注意:由于我需要处理大量的日文和中文文本,我们感兴趣。
Note: Interested due to enormous amounts of japanese and chinese text I need to handle.
推荐答案
我可以想到一些会出错的事情:
I can think of a few things that will go wrong:
- 您必须在HTTP标头中指定它是UTF-16。与UTF-8不同,UTF-16不支持 ASCII兼容,这意味着从一开始就需要使用UTF-16。
- 旧客户端t支持UTF-16。例如,Windows 9x上的任何东西。可能是Mac OS9。
- 哦,等等,我几乎忘了:北美和欧洲的Windows XP副本默认情况下没有安装亚洲字体。
- You MUST specify that it's UTF-16 in the HTTP header. Unlike UTF-8, UTF-16 is not ASCII compatible, which means that everything needs to be in UTF-16 from the start.
- Older clients don't support UTF-16. For example, anything on Windows 9x. Possibly Mac OS9 as well.
- Oh, wait, I almost forgot: North America and European copies of Windows XP don't have Asian fonts installed by default.
这篇关于将HTML编码从UTF-8切换到UTF-16可能会出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文