I need to format some PHP output so that text lines up properly in
columns. The input text is in Japanese.
However I can't seem to figure out correctly how long a line is so that
I can then pad it with the necessary number of spaces.
The problems seems to be because the input text contains both japanese
and ASCII characters, and the ASCII characters take up one space, while
the Kanji/kana take up two.
Is there any way for me to count how many "one-space" characters there
are in a string and how many "two space" characters there are? That way
I can figure out exactly how "long" a string is ...
Thanks!
Jc
--
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP-I18N] Re: calculating line length of Japanese... Jean-Christian Imbeault
- [PHP-I18N] Re: calculating line length of Jap... Jean-Christian Imbeault