Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (isaac), 55 guests, and 221 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
mmkk
mmkk
Beijing
Posts: 28
Joined: November 2012
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 11
Ruben 5
M4TT 4
Morgan 3
isaac 1
Latest Photos
Previous Thread
Next Thread
Print Thread
Support for Chinese. #259822
03/17/17 12:05 AM
03/17/17 12:05 AM
Joined: Nov 2012
Posts: 28
Beijing
mmkk Offline OP
newbie
mmkk  Offline OP
newbie
Joined: Nov 2012
Posts: 28
Beijing
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:http://forum.djsj.org
[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 02:14 AM
03/17/17 02:14 AM
Joined: Jan 2010
Posts: 7
E
E T P Offline
stranger
E T P  Offline
stranger
E
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 02:31 AM
03/17/17 02:31 AM
Joined: Nov 2012
Posts: 28
Beijing
mmkk Offline OP
newbie
mmkk  Offline OP
newbie
Joined: Nov 2012
Posts: 28
Beijing
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 06:52 AM
03/17/17 06:52 AM
Joined: Nov 2012
Posts: 28
Beijing
mmkk Offline OP
newbie
mmkk  Offline OP
newbie
Joined: Nov 2012
Posts: 28
Beijing
upupup onoes

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

For example:
Code
$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 @ id242.com // forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Changelog

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Member being directed to "stopforumspam?"
by Lisanne. 07/14/18 10:27 AM
7.6.1.1 - Broken ReCaptcha (Not A Bug)
by M4TT. 07/01/18 06:02 PM
Control Panel / Transactions Username
by Morgan. 06/20/18 05:38 AM
Custom Insert won't save
by Baldeagle. 06/18/18 07:44 PM
random 500 server errors on post
by Bad Frog. 05/31/18 09:34 AM
Forum Statistics
Forums36
Topics35,125
Posts191,350
Members12,091
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180524)