IIS7 Windows 2008 Server上的日文/韩文字符编码问题 [英] Japanese/Korean characters encoding issue on IIS7 windows 2008 server

查看:74
本文介绍了IIS7 Windows 2008 Server上的日文/韩文字符编码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将站点从Windows 2003上的iss转移到了2008服务器上.

一切正常,除了日语和韩语的某些页面,其中的文本像乱七八糟一样出现:











¢ãã»»½½½½½½¶¶¶¶»ã«««´«««««« pƒ§««««p p p p p p p p p

看起来像这样.

与以前一样,字符编码已设置为UTF-8.是否需要更改服务器设置?

解决方案

我弄清楚了为什么会发生这种情况-即使meta标签将页面设置为以utf-8编码. IIS中的错误设置导致日语和朝鲜语字符的变形.

我通过以下方式解决了这个问题:

  1. 进入IIS管理器
  2. 进入.NET全球化设置
  3. 确保将文件编码设置为utf-8

然后一切都按预期开始工作.

I have just transferred a site from iss on a windows 2003 to a 2008 server.

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. 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. An incorrect setting in IIS caused the mangling of the Japanese and Korean characters.

I fixed this in the following way:

  1. Went to IIS Manager
  2. Went to .NET Globalization settings
  3. Made sure that the File encoding was set to utf-8

Then everything started working as expected.

这篇关于IIS7 Windows 2008 Server上的日文/韩文字符编码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆