Previous Thread
Next Thread
Print Thread
Hop To
#212906 05/19/2008 5:38 PM
Joined: Jun 2006
Posts: 142
G
member
member
G Offline
Joined: Jun 2006
Posts: 142
Finally finished the 7.3 upgrade only to find out that the data in the tables got corrupted somewhere along the way.

It seems that the data is in latin2 format even though all tables are in UTF8.

Does anyone have any ideas on how to fix this?

It looks OK in v6.5.5 though.

Example:
Det här forumet är till för att diskutera rollspel i allmänhet och dessutom alla specifika rollspel som inte har nå...

Should look like this:
Det här forumet är till för att diskutera rollspel i allmänhet och dessutom alla specifika rollspel som inte har nå...

My ideas are these:
  1. Dump the data, convert dump file to UTF8, restore data.
    Problem: iconv thinks file is already in UTF8, but contains above corrupted characters. Also, breaks on some characters and removes lines.
  2. Convert text columns to BLOBs, switch table to latin1, convert blobs back to text, convert tables back to utf8.
    Problem: Will take ages, can't find a script to do this, seems lika a high risk that something breaks.
  3. Create a new dump of old data which hopefully is correct and do the complete upgrade again.
    Problem: Not feasible, the old upgrade took the entire weekend and then some.
  4. Break down and cry.
    Problem: Doesn't actually solve anything.

Anyone have any other ideas?


aka Olle Johansson
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
5) edit the generic.php language file and select the propper codepage for your language settings. Looks like a nordic language so you can try some iso strings. I use $ubbt_lang['CHARSET'] = "iso-8859-1";


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Zarzal #212911 05/19/2008 5:57 PM
Joined: Jun 2006
Posts: 142
G
member
member
G Offline
Joined: Jun 2006
Posts: 142
Thanks, just found it myself too.

It's actually latin1 in the files, so I changed to UTF8 and it works perfectly.

Although, now the language files need to be converted instead.


aka Olle Johansson
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
you'll also need to open the myfeeds.php language file and change it's charset (maybe) to match..

Zarzal had that issue.. dunno, if you would too..

Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
Yes, I knew this too smile It could be a little pain sometimes. If I edit my language file I try to use the html entity for the special chars to prevent this trouble. But this sometimes dont work on requester.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
SD #212918 05/19/2008 6:20 PM
Joined: Jun 2006
Posts: 142
G
member
member
G Offline
Joined: Jun 2006
Posts: 142
Originally Posted by Sirdude
you'll also need to open the myfeeds.php language file and change it's charset (maybe) to match..

Zarzal had that issue.. dunno, if you would too..

Thanks. It seems to be in UTF8 already, so that should work fine.



aka Olle Johansson
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
I had to change myfeeds.php to the same as used in generic.php to see my chars in the correct encoding. Both must be the same.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 8:50 AM
Who's Online Now
0 members (), 270 guests, and 100 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)