Welcome Guest, Not a member yet? Register   Sign In
Issue with Russian language
#1

[eluser]Unknown[/eluser]
Hi Everyone,

I have an issue with russian language. I need to create a russian site, but it seems the Cyrillic charset is not working for me.
I have set the charset to UTF-8 and the language to russian, but when I check the site, I get only ????? characters against the cyrillic characters.
The files are in UTF-8 without BOM format.
I read lots of forums, wiki etc. how to solve this issue, but nothing helps.
Have anyone idea how could I solve this issue?

Thanks for your help!

Regards,
Sparrow
#2

[eluser]tomcode[/eluser]
Have You set the text encoding in Your HTML markup to UTF-8 ?

XHTML
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

html5
Code:
<meta charset="utf-8">
#3

[eluser]Unknown[/eluser]
Yes, the text encoding is set on HTML view file. Did I set it on the right place?
#4

[eluser]tomcode[/eluser]
The tag must be in the head part of Your HTML markup:
Code:
<!DOCTYPE html>
&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset="utf-8"&gt;
        &lt;title&gt;untitled&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;

    &lt;/body&gt;
&lt;/html&gt;

Check Your page in W3C Validator
You can also verify whether Your browser uses utf-8 to render the page, have a look for a menu item 'Text Encoding' or 'Character Encoding'
#5

[eluser]InsiteFX[/eluser]
It is also recommended that you also include the old meta tag for a fallback when using HTML 5!
Code:
<!DOCTYPE html>
&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset="utf-8"&gt;
        &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
        &lt;title&gt;untitled&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;

    &lt;/body&gt;
&lt;/html&gt;

InsiteFX
#6

[eluser]a/\ekc[/eluser]
My wiki
In your header place this code:
Code:
&lt;?php  header('Content-type: text/html; charset=utf-8') ?&gt;

in my case it's really helps
#7

[eluser]InsiteFX[/eluser]
Or .htaccess
Code:
<ifModule mod_php5.c>
    php_value default_charset utf-8
</ifModule>

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB