Log in

View Full Version : Getting a utf-8 board up and running


AndrewD
04-21-2007, 12:55 PM
I'm having a certain amount of brain pain getting a full UTF-8 based language (Chinese) working, in order to debug some settings with my product. Would appreciate some help:

- Clean installation of VB
- Patched class-xml.php as per guidelines (function &parse($encoding = 'ISO-8859-1', $emptydata = true) => function &parse($encoding = 'UTF-8', $emptydata = true))
- Installed official simplified Chinese language pack (utf-8)
- Installed external product + its utf-8 language file (my own, as it happens)
- Imported database tables from the Chines site that reported a bug
- Database tables are all utf8_general_ci collation

There's three different behaviours showing up, see images:
- The main vb menus and text are being displayed as extended latin characters
- The imported product's menu text is being displayed correctly in simplified Chinese
- The imported product's database entries are being displayed as series of question marks
- Items added in Chinese to the forums are being displayed in a compbination of valid Chinese and garbage.

Everything in the database shows up correctly in Chinese using phpmyadmin, so I know the raw material is correct.

Any suggestions where should I start looking?

itsblack
04-22-2007, 11:47 AM
I guess maybe the language file self has problem. So I send you the language file now I'm using per email.

The better way to creat a utf8 board is creat a utf-8 database in phpmyadimn at first. The MySQL connection collation should choose "utf8_general_ci". Then use this database install a new board.