Yasuo Ohgaki wrote:
>
> Believe me. I'm native Japanese and telling you they are useless
> for Japanese text.

Don't worry, I believe you :)

 > They are useless for Korean, Chinese, etc text
> also.

Alright - but what I want to do is not necessarily word-wrap Japanese 
text. What I want to do is make sure that wordwrap() doesn't *break* the 
Japanese string.

The thing is, I'm building an international site that uses UTF-8 
throughout. The user will have the possibility to send mail from the 
site. When the user posts the text that he/she want to send, I won't 
know whether the text is in Japanese, Russian, Danish, or whatever. I'll 
then use wordwrap() to make sure that strings that can be wrapped (such 
as Western European and Cyrillic strings) will be wrapped - but at the 
same time I want to make sure that the string doesn't break if the 
string is in Japanese. It's not a big problem if the Japanese text 
doesn't get wrapped - I just wanna make sure that the Japanese text 
isn't broken by using wordwrap().

Anyway, thank you very much for your help. If I understand it correctly, 
wordwrap() will not actually wrap Japanese text - but it won't break it 
either. Is that correct?


-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to