Jump to content

txt_wordwrap() is still not multi-byte safe for Chinese characters

Featured Replies

Posted

The new txt_wordwrap() function in ipsclass is still not multi-byte safe for Chinese characters.
You can copy and paste the following text for test, or copy some text from our forum http://forum.maxthon.cn
(please install a Chinese font if you don't have the Arial Unicode MS font):
邪门的,个人资料的编辑里面,你的百度地址为何有超级链接,呵呵,我做不出来,为何?

Right text (I've modified the profile.php file for this):
post-90984-1173259371_thumb.png

Wrong text (missing chars are displayed as boxes):
post-90984-1173259435_thumb.png

actually when i looked all the characters were there they were just moved about a little, with the boxes which are a addition but still see all the characters in both pictures... i don't read Chinese but i can compare letters.

Can't wait for php 6......

actually when i looked all the characters were there they were just moved about a little, with the boxes which are a addition but still see all the characters in both pictures... i don't read Chinese but i can compare letters.


It's just an example. And the text is missing a char '接'.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.