[英]Japanese/Korean characters encoding issue on IIS7 windows 2008 server
I have just transferred a site from iss on a windows 2003 to a 2008 server. 我刚刚将站点从Windows 2003上的iss转移到了2008服务器上。
Everything is working as before, except some pages in Japanese and Korean, where the text comes out like a garbled mess: 除了日语和韩语的某些页面外,所有内容都像以前一样工作,其中的文本像乱码一样出现:
‰‹ã®ãƒ‡ã‚¤ãƒ ・ジョーン・サザーランドã€ã‚µãƒ¼ãƒ»ãƒˆãƒ¼ãƒžã‚¹ãƒ»ã‚¢ãƒ¬ãƒ³ã€ã‚¢ãƒ«ãƒ•ã‚£ãƒ¼ãƒ»ãƒœãƒ¼ã‚„楽器演å¥å®¶ã‚¸ã‚§ãƒ¼ãƒ ズ・ゴールウェイã€ã‚¸ãƒ§ãƒ³ãƒ»ãƒªãƒ«ã€ãƒŠã‚¿ãƒªãƒ¼ãƒ»ã‚¯ãƒ©ã‚¤ãƒ³ã¨ã„ã£ãŸé¡”ã¶ã‚Œã§ã™ã€‚ 随身携带的衣服•£¼»»½½½½½½ ,¸ãƒ§ãƒ³ãƒ»ãƒªãƒ«ã€ãƒŠã,¿ãƒªãƒ¼ãƒ»ã,¯ãƒ©ã,¤ãƒ³ã¨ã“ã£ãŸé¡”ã¶ã,Œã§ã™ã€,
It looks like this. 看起来像这样。
The character encoding is set to UTF-8 as it was before. 字符编码设置为以前的UTF-8。 Is there a server setting that needs to be changed?
是否需要更改服务器设置?
I worked out why this was happening - even though the meta tag set the page to be encoded in utf-8. 我弄清了为什么会这样-即使meta标签将页面设置为使用utf-8进行编码。 An incorrect setting in IIS caused the mangling of the Japanese and Korean characters.
IIS中的错误设置导致日语和朝鲜语字符的变形。
I fixed this in the following way: 我通过以下方式解决了这个问题:
Then everything started working as expected. 然后,一切开始按预期工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.