如何使韩文字符显示在网站上? [英] How to get Korean language characters to display on a website?

查看:85
本文介绍了如何使韩文字符显示在网站上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个网站,将以各种语言显示.我们的页脚提供了查看韩国网站的选项.

We have a website that will be displayed in various languages. Our footer gives the option to view the Korean site.

    <ul>
      <li><a href="index.aspx">English</a></li>
      <li><a href="de/index.aspx">Deutsch</a></li>
      <li><a href="nl/index.aspx">Nederlands</a></li>
      <li><a href="kr/index.aspx">한국의</a></li>
    </ul>

当我在本地开发此程序时,一切都显示良好.

As I developed this locally, everything showed up well.

但是当我将其启动到.net环境中的测试服务器时,它的显示效果不佳.

But when I launched it to our testing server which is in a .net environment, it did not display well.

当我进行搜索以寻找解决方案时,我发现了一个网站,该网站涵盖了一些有关显示韩文 http://www.katpatuka.org/pub/doc/content-language/ko.htm

When I did a search for finding solutions I found a site which covered some basics about displaying Korean http://www.katpatuka.org/pub/doc/content-language/ko.htm

他们建议添加以下<meta>标签

    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=KS_C_5601">
    <META HTTP-EQUIV="Content-language" CONTENT="ko">

我尝试过但无济于事.有什么可以解决这个问题的?

Which I tried but to no avail. What can resolve this?

推荐答案

示例页面由服务器通过HTTP标头发送

The sample page mentioned is sent by the server with the HTTP header

Content-Type: text/html; charset=iso-8859-9

这一定是错误的. ISO-8859-9是8位代码,称为Latin/Turkish或ISO Latin5.

This must be all wrong. ISO-8859-9 is an 8-bit code, known as Latin/Turkish or ISO Latin5.

meta标记不能覆盖HTTP标头中的编码信息.您需要修复服务器配置.

A meta tag cannot override the encoding information in HTTP headers. You need to fix the server configuration.

如果我手动(使用浏览器设置,覆盖HTTP标头)将Chrome中的编码设置为韩语",则可能显示该页面确定"(可能是Windows-949). IE 10上的同上.在Firefox中,可以选择三种韩文编码.使页面显示正常的一个是"EUC-KR".它与Windows-949之间的差异在这里可能(或可能不会)微不足道.

The page seems to display OK if I manually (using browser settings, overriding HTTP headers) set the encoding to "Korean" in Chrome, whatever that might mean (windows-949, perhaps). Ditto on IE 10. In Firefox, there are three Korean encodings selectable. The one that makes the page display OK is "EUC-KR". The differences between it and windows-949 might (or might not) be insignificant here.

所以这很令人困惑.我真的建议将编码转换为UTF-8并在HTTP标头中声明. (实际上,使用带有BOM的UTF-8"就足够了,因为浏览器将从BOM推断UTF-8,从而覆盖所有其他信息.)

So it’s rather confusing. I would really suggest converting the encoding to UTF-8 and declaring it in HTTP headers. (Actually, it suffices to use "UTF-8 with BOM", since browsers will infer UTF-8 from the BOM, overriding any other information.)

这篇关于如何使韩文字符显示在网站上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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