I am trying to work with japanese UTF-8 on vB. I am using a older language pack as the base it is in UTF-8. I followed the advice from Andy Huang post on russian utf-8
the actual translation in XML is UTF-8 the charset line is
<charset><![CDATA[UTF-8]]></charset>
but everything comes up question marks after importing.
I also tried starting a new language pack from scratch and entering Japanese in through the browser. It looks OK entering but when I leave the screen and come back it is question marks.
I have tried importing and direct import on Opera/OSX and also importing on IE/WinXP.
I have tried using "utf-8" and "UTF-8". My vBulletin version is 3.6.8
My phpinfo has '--enable-mbstring'
set mysqli in my vB config also set utf-8.
phpmyadmin says "MySQL charset: UTF-8 Unicode (utf8)"
Any other suggestions?
When importing, please be sure to find this line in ./includes/class_xml.php:
Code:
function &parse($encoding = 'ISO-8859-1', $emptydata = true)
And replace it with:
Code:
function &parse($encoding = 'UTF-8', $emptydata = true)
After you're done importing, be sure to head over to Admin CP > Languages & Phrases > Language Manager, edit the language, and make sure "HTML Character Set" is set to "UTF-8". It is also STRONGLY recommended that you have ALL your languages in UTF-8, so there is no encoding problems between users using different languages.
Code:
function &parse($encoding = 'ISO-8859-1', $emptydata = true)
And replace it with:
Code:
function &parse($encoding = 'UTF-8', $emptydata = true)
After you're done importing, be sure to head over to Admin CP > Languages & Phrases > Language Manager, edit the language, and make sure "HTML Character Set" is set to "UTF-8". It is also STRONGLY recommended that you have ALL your languages in UTF-8, so there is no encoding problems between users using different languages.
<charset><![CDATA[UTF-8]]></charset>
but everything comes up question marks after importing.
I also tried starting a new language pack from scratch and entering Japanese in through the browser. It looks OK entering but when I leave the screen and come back it is question marks.
I have tried importing and direct import on Opera/OSX and also importing on IE/WinXP.
I have tried using "utf-8" and "UTF-8". My vBulletin version is 3.6.8
My phpinfo has '--enable-mbstring'
set mysqli in my vB config also set utf-8.
phpmyadmin says "MySQL charset: UTF-8 Unicode (utf8)"
Any other suggestions?
Comment