|
[B] UTF-8 conversion screws up postings with umlauts [R]
|
|
11-13-2008, 11:45 PM
Post: #1
|
|||
|
|||
|
[B] UTF-8 conversion screws up postings with umlauts [R]
If you convert your tables from latin to utf8 all contents with umlauts get screwed up.
Steps to reproduce: 1. Set up a new board and choose "ISO 8859-2 Central European" as database encoding. Make sure you also set "iso-8859-2" as the encoding in the file inc/languages/*language*.php 2. Write a new post with the following content: Quote:This is just a test. AƤ test test test. 3. Change the encoding settings in inc/config.php and inc/languages/*language*.php to utf8. 4. Convert all tables to utf-8. After that the post looks like this: Quote:This is just a test. AIt ends where the umlaut should be. Greets, Michael ------------- German MyBB-Site MyBBoard.de Get the german languagepack here |
|||
|
11-14-2008, 05:01 AM
Post: #2
|
|||
|
|||
|
RE: UTF-8 conversion screws up postings with umlauts [R]
Not sure what to tell you. We do what the MySQL docs say to do.
![]() My Blog - My Mods |
|||
|
11-14-2008, 08:40 AM
Post: #3
|
|||
|
|||
|
RE: UTF-8 conversion screws up postings with umlauts [R]
How did you do step 4 - convert all tables to UTF-8?
|
|||
|
11-16-2008, 10:08 AM
Post: #4
|
|||
|
|||
RE: UTF-8 conversion screws up postings with umlauts [R]
(11-14-2008 08:40 AM)frostschutz Wrote: How did you do step 4 - convert all tables to UTF-8? This is the snippet of code that actually does the processing from admin/modules/tools/system_health.php PHP Code: $old_table_prefix = $db->table_prefix;![]() My Blog - My Mods |
|||
|
11-20-2008, 10:06 PM
Post: #5
|
|||
|
|||
|
RE: UTF-8 conversion screws up postings with umlauts [R]
As far as I'm concerned this isn't a problem in MyBB. We run the process that is supposed to convert it properly, but it's up to MySQL to actually convert it to binary then convert it to utf8 properly. That's the process MySQL tells us developers to do: http://dev.mysql.com/doc/refman/5.0/en/alter-table.html
Quote:Warning If there's a problem with it, then they need to fix it. Unless anyone has some brighter ideas, I'm marking this as bogus. ![]() My Blog - My Mods |
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help


![[Image: ryangordon.png]](http://files.bellomandesign.com/signatures/mybb/ryangordon.png)
