俄语 HTML
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8667209/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
HTML in Russian
提问by Nrc
I have to design a Russian version of a web. I get the text from a translator. I copy it in the code of the Dreamweaver but it doesn't work.
我必须设计一个俄文版的网络。我从翻译那里得到文本。我将它复制到 Dreamweaver 的代码中,但它不起作用。
I have the usual head:
我有通常的头:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
What should I do?
我该怎么办?
采纳答案by Nrc
After trying so many tings I discovered that the problem was in the server. I don't know exacly how, but when I told them that I need a web in russian they changed something and it works!.
在尝试了这么多次之后,我发现问题出在服务器上。我不知道具体是怎么做的,但是当我告诉他们我需要一个俄语网络时,他们改变了一些东西并且它起作用了!。
回答by Valeh Hajiyev
回答by Jukka K. Korpela
The document http://www.mig-marketing.com/proves/nando/ru/contains Russian text in an image only, but it links to http://www.mig-marketing.com/proves/nando/ru/firma.htmlwhich contains (in addition to text in an image) Russian text in ISO-8859-5 (= ISO Latin/Cyrillic) encoding. This encoding is declared in a meta
tag, but the problem is that the declaration has no effect, since HTTP headers take preference over them, and they say
文档http://www.mig-marketing.com/proves/nando/ru/仅在图像中包含俄文文本,但它链接到http://www.mig-marketing.com/proves/nando/ru/ Firma.html包含(除了图像中的文本)采用 ISO-8859-5(= ISO 拉丁文/西里尔文)编码的俄文文本。这种编码是在meta
标签中声明的,但问题是声明没有效果,因为 HTTP 标头优先于它们,他们说
Content-Type: text/html; charset=ISO-8859-1
(You can conveniently check the HTTP response headers using Firefox with Web Developer Extension and selecting Information → View Response Headers.)
(您可以使用 Firefox 和 Web Developer Extension 方便地检查 HTTP 响应标头,然后选择信息 → 查看响应标头。)
To fix this, contact the web server admin or try and fix it yourself, if the Apache settings allow the use of per-directory .htaccess
files, in which case just create a file with that name (including the leading dot) in the directory containing the Russian files and enter the text
要解决此问题,请联系 Web 服务器管理员或尝试自己修复它,如果 Apache 设置允许使用每个目录的.htaccess
文件,在这种情况下,只需在包含俄文文件并输入文本
AddType text/html;charset=ISO-8859-5 html
This would then make the server send all .html files in that directory with HTTP headers that specify them as ISO-8859-5 encoded.
这将使服务器发送该目录中的所有 .html 文件,并带有将它们指定为 ISO-8859-5 编码的 HTTP 标头。
回答by abatishchev
Re-save all your files in UTF8 forcefully.
用 UTF8 强制重新保存所有文件。