MyBB Community Forums

Full Version: help me for Utf-8
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:Warning: Cannot modify header information - headers already sent by (output started at d:wampwwwscriptmybbinclanguagespersian.php:1) in d:wampwwwscriptmybbincfunctions.php on line 849

....

Quote:Warning: Cannot modify header information - headers already sent by (output started at d:wampwwwscriptmybbinclanguagespersian.php:1) in d:wampwwwscriptmybbadminglobal.php on line 963.

Do not convert the files to Unicode (UTF-8), use ANSI files, written in UTF-8
This can be done in Windows (except 64, the program crash all the time), thru NotePad ++ (http://notepad-plus.sourceforge.net/uk/site.htm).

After installation and starting the program, load one file from mybb_root/inc/persian/ and

Click on Format
(U will see Encode in ANSI is checked) - Leave it as is
on the bottom of this menu u can see - UTF-8 without BOM, this have to be marked each time before you start translating.

And you are done.

There are two other CMS wich gives the same error
XOOPS and Mambo.

I'm wondering why the developers choose the ISO8859-1 as default, what about then for the Russian users, how they will write here in Russian language (cyrillic) on own support sub-forum, Chinese, Japanese, Arabic, Indians, Bangla, etc. all of them depend on UTF-8. It's a shame in this time when everyone looks forward and creates everything for Unicode UTF-8, u to pick the old and unsuppored ISO-?????. Shame on your MyBB developers.
It is definitely the BOM (byte order mark) which is giving you grief. Save it as UTF-8 without BOM and things should work fine.

Another note about UTF-8: htmlentities assumes the input string is in latin-1 so things will appear weird.