Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML in Russian

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?

like image 687
Nrc Avatar asked Dec 09 '22 03:12

Nrc


2 Answers

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.

like image 198
Valeh Hajiyev Avatar answered Dec 25 '22 23:12

Valeh Hajiyev


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.

like image 42
Jukka K. Korpela Avatar answered Dec 26 '22 01:12

Jukka K. Korpela