Site Links
Pricing & Order
Members Area
Support Options
Who's Online Now
0 registered members (), 71 guests, and 304 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
North California
Posts: 43
Joined: February 2008
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 25
Ruben 14
Morgan 11
isaac 9
Alento 4
SteveS 3
Latest Photos
Testing to drag photos
Comfortable Cats
BSA photos
Previous Thread
Next Thread
Print Thread
Support for Chinese. #259822
03/16/17 11:05 PM
03/16/17 11:05 PM
mmkk  Offline OP
Joined: Nov 2012
Posts: 28
Chinese topic title display garbled on the forum home page.As shown in the figure.
I did not find the option to change this problem in the ADMIN.Need to modify the template file?
If you can, please tell me how to modify it.Thanks a lot!
My site link:
[Linked Image]

Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Support for Chinese. [Re: mmkk] #259823
03/17/17 01:14 AM
03/17/17 01:14 AM
E T P  Offline
Joined: Jan 2010
Posts: 7
Control Panel -> General -> Primary (tab) -> Maximum Subject Length -> changing this value to a larger one should work

Re: Support for Chinese. [Re: E T P] #259825
03/17/17 01:31 AM
03/17/17 01:31 AM
mmkk  Offline OP
Joined: Nov 2012
Posts: 28
Thanks for your reply.
It's not work.This option is about posting.
Remember at UBB.classic,there is an option about title display in the forum page,about length.

Re: Support for Chinese. [Re: mmkk] #259835
03/17/17 05:52 AM
03/17/17 05:52 AM
mmkk  Offline OP
Joined: Nov 2012
Posts: 28
upupup onoes

Re: Support for Chinese. [Re: mmkk] #259836
03/17/17 06:12 AM
03/17/17 06:12 AM
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,229
mmkk, this is an issue related to PHP doing a "substr" on your multi-byte Chinese characters.

For example:
$subject_max_length = 26;
substr($returndata[$i]['FORUM_LAST_POST_SUBJECT'], 0, $subject_max_length);

What its basically doing is taking your string of Chinese characters, and displaying as many bytes of them as it can (Chinese characters are composed of three-bytes, IIRC). But when it finishes with the last set of three-bytes, it can only produce 2 of them before sbstr says its reached it max number of bytes. Thus, only two of the required three bytes are displayed. And you are shown an incomplete (broken) character, as a black diamond.

Originally, "mb_substr" should have been used, rather than just "substr." But...

This code has been in UBB.threads for many years. It was caught about a week ago, and converted to use the "text-overflow:ellipsis;" CSS. So that the processing should happen at the point of output, rather than the point when the data is freshly grabbed from the database.

The non-technical answer smile : Its been fixed for the upcoming UBB.threads 7.6.1 release.

Thanks for reporting this for your language. This is a huge help!

isaac @ // my forum @
a current developer of UBB.threads php forum software // 7.6.2 Released

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Phishing SCAM emails
by Morgan. 11/16/18 01:28 PM
Repliers can change thread title
by Baldeagle. 11/12/18 08:49 PM
Tabs In Header
by AstroCat. 11/11/18 08:33 AM
by SteveS. 11/09/18 07:12 PM
Censor List
by Larry Miller. 11/08/18 02:53 PM
Forum Statistics
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2