Previous Thread
Next Thread
Print Thread
Hop To
#238487 08/04/2010 7:34 PM
Joined: Jun 2006
Posts: 67
C
journeyman
journeyman
C Offline
Joined: Jun 2006
Posts: 67
Hi

We have a script that automatically add updates from Facebook as a post in UBB. The programmer who did the script encountered a problem. The data from the facebook posts is in UTF-8 encoding whilst UBB displays ISO/IEC 8859-1 encoding which is causing some posts to display wrong characters. I am being asked if I can cover UBB to UTF-8. Is that possible? Can it be done for 1 forum only? What are the drawbacks? What will happen to the past posts?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
It's a pretty big process to convert the database to utf-8 but one we're doing for version 8. You might be able to get away with just changing the charset in the languages/english/generic.php to utf-8 and see if that works for you. Side effects might be some multi-byte characters not displaying properly.

Rick #238489 08/04/2010 10:28 PM
Joined: Jun 2006
Posts: 67
C
journeyman
journeyman
C Offline
Joined: Jun 2006
Posts: 67
Thanks for the quick response. I will see if we can come up with another solution.

Joined: Jun 2008
Posts: 92
Likes: 1
M
Journeyman
Journeyman
M Offline
Joined: Jun 2008
Posts: 92
Likes: 1
Newer versions of Apache default to using character set utf8 instead of 8851-1.

For many, the quick fix after migration to a newer server is to edit this file:

ubbthreads/languages/english/generic.php

and update this:

$ubbt_lang['CHARSET'] = "UTF-8";

to this:

$ubbt_lang['CHARSET'] = "8859-1";


Today they call you "crazy".
Tomorrow they call you "ahead of your time".

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 919 guests, and 149 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)