Re: Multi-byte strings and Japanese characters

From: Date: Sat, 28 Sep 2002 12:16:30 +0000
Subject: Re: Multi-byte strings and Japanese characters
References: 1 2 3 4 5  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-337@lists.php.net to get a copy of this message
Jonas Koch Bentzen wrote:
IIRC, wordwrap wraps when there is space, I guess you would like to try something like this. wordwrap($str, 1, "\r\n", TRUE);
I'm sorry, I don't understand. Why would I want to break at just 1 character? But I guess since wordwrap() wraps at space, it can't break a Japanese string?
I guess you don't know Japanese text does not have spaces between words. The wordwrap() is useless for Japanese text. strlen(), substr(), etc are almost useless as well. Believe me. I'm native Japanese and telling you they are useless for Japanese text. They are useless for Korean, Chinese, etc text also. -- Yasuo Ohgaki

« previous php.i18n (#337) next »