wordwrap.inc.t break double-byte word? [message #22815] |
Thu, 17 February 2005 12:22 |
huturen
Messages: 4 Registered: November 2004
Karma: 0
|
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 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
|
|
|
Re: wordwrap.inc.t break double-byte word? [message #22816 is a reply to message #22815] |
Thu, 17 February 2005 14:31 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
It's not a good fix because one of the purposes of wordwrap is to prevent people from writing long strings without a separator to facilitate wrapping. So, unless the cut parameter (the one you removed) is set wordwrap won't be effective against those.
FUDforum Core Developer
|
|
|
Re: wordwrap.inc.t break double-byte word? [message #22822 is a reply to message #22816] |
Thu, 17 February 2005 16:18 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
My suggestion is that for multibyte installs wordwrapping be disabled. This can be done by setting the wordwrap value in the admin control panel to 0.
FUDforum Core Developer
|
|
|
Re: wordwrap.inc.t break double-byte word? [message #22837 is a reply to message #22815] |
Fri, 18 February 2005 03:09 |
huturen
Messages: 4 Registered: November 2004
Karma: 0
|
Junior Member |
|
|
Thanks.Would you change the note of Word Wrap in Global Configuration?It will be helpful for multibyte user who is new for fudforum.
like this:
Quote: | Word Wrap:
This setting defines on how many character to wrap message bodies on, any text string longer the the number of character in this option will be broken down into 1 or more strings using a space as a separator.For multibyte installs you would like to set the value to zero.
|
[Updated on: Fri, 18 February 2005 03:10] Report message to a moderator
|
|
|
|