HTML in Russian

2019-05-31 13:54发布

问题:

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.

I have the usual head:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

What should I do?

回答1:

You should change encoding of your file to UTF-8. You can do this process when you Save As file in Notepad or you can use Notepad++(Encoding -> Encode in UTF-8) for it.



回答2:

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.html which 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

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.)

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

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.



回答3:

Re-save all your files in UTF8 forcefully.



回答4:

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!.