Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
I am just testing my newly upgraded UBBT 7.0 .
I found the preview function don't support Chinese characters .
See the attachments for details :

[Linked Image]
[Linked Image]

How to solve it ?
Attachments
274-ubb1.gif 275-ubb2.gif

Last edited by Rick; 12/29/2006 1:38 PM.

English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
do you use 7.0 or 7.0.2 ? In 7.0.2 this should be fixed.


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
Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
After upgrading to 7.0.2 , the problem remains ....


English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
Can anybody tell me what may cause the encoding problem ?
previewpost.inc.php ?

Quote
$Body = $html->do_censor($Body);
if ($convert == "markup" || $convert == "both") {
$Body = $html->do_markup($Body,"post",$convert);
}

$Body = str_replace( "graemlins/default", $style_array['graemlins'], $Body );

// I think I should add something here , but I have no idea ...
// I am not familiar with PHP ...

header("Content-Type: text/html; charset={$ubbt_lang['CHARSET']}");


English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
This actually gets fixed in 7.1. What you need to do is edit your previewpost.inc.php. You'll see this line:

header("Content-Type: text/html; charset={$ubbt_lang['CHARSET']}");

That, needs to be changed to this:

header("Content-Type: text/html; charset=UTF-8");

Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
Thank you , it works! grin


English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.

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
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,018 guests, and 215 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)