FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » wordwrap.inc.t break double-byte word?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
wordwrap.inc.t break double-byte word? [message #22815] Thu, 17 February 2005 12:22 Go to previous message
huturen is currently offline  huturen   China
Messages: 4
Registered: November 2004
Karma:
Junior Member
in file wordwrap.inc.t,line 106:
$data .= wordwrap($v['word'], $m, ' ', 1);

will break double-byte word when the break (wrap)point is a double-byte word.

change the code to
$data .= wordwrap($v['word'], $m, ' ');
will fix it.
Is this a good way to fix?I don't know.

------ example ----
By default,GLOBALS.php set
$WORD_WRAP = 60;
and post a topic with body
1井井井井井井井井井井井井井井井井井井井井井井井井井井井井井井井
,the body will break into
1井井井井井井井井井井井井井井井井井井井井井井井井井井井井井??br />



tested in FUDforum 2.6.10.

[Updated on: Thu, 17 February 2005 12:24]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PATH_INFO setting break user?
Next Topic: firefox cookies problem [?]
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 19:40:50 GMT 2024

Total time taken to generate the page: 0.04036 seconds