MyBB Community Forums

Full Version: Cyrillic characters display.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,
My forum engine would generate code symbols instead of normal characters when creating a topic with subject in Cyrillic language. Is there anything to do about that? Also Cyrillic forum names are displayed in western encoding, is it possible to change to Unicode or something like that? I mean is there some change that could be done to make my forum more Cyrillic friendly?
Thanks a lot.
You can change the header include template. That template contains the encoding meta data.
Hi MiNT,
This is the code at present time in the haderinclude template:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="general.js"></script>
<link rel="stylesheet" type="text/css" href="css.php?theme=$theme[tid]" />
$newpmmsg
Since i am not expert in encoding techniques, I'd really appreciate a tip from you, like what should be the charset in order to display western and Cyrillic characters together.
Thank you a lot.
I'm not sure if unicode has cyrillic characters, but it should. If this doesn't work, post some cyrillic characters in this thread so I can do some testing.

Change this
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
to this
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
The charset is not defined in the templates, it's in the file inc/languages/yourlanguage.php.
i was wondering where that variable came from Toungue
Michael83 Wrote:The charset is not defined in the templates, it's in the file inc/languages/yourlanguage.php.
Would you mind to tell me please what could i change in yourlanguage.php to make my forum Latin and cyrillic friendly.
Thank you.
MiNT Wrote:I'm not sure if unicode has cyrillic characters, but it should. If this doesn't work, post some cyrillic characters in this thread so I can do some testing.
Here are some Cyrillic characters: [the post title as well]
Это есть тест для кодировки
MiNT Wrote:i was wondering where that variable came from Toungue
Hi MiNT,
Would you mind help me a bit with what code should i change in yourlanguage.php to solve this issue?
Thank you.
MiNT Wrote:I'm not sure if unicode has cyrillic characters, but it should. If this doesn't work, post some cyrillic characters in this thread so I can do some testing.

Change this
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
to this
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Hello again,
Doing that change almost solved my issue. Now cyrillic characters are displayed fine, just some global and Latin characters are messed. I think it can be fixed if i will choose the proper encoding. Could you please post here some more Unicode type encoding so i could choose the best one. Are there more Unicode type encoding?
Thank you a lot.
Pages: 1 2