note 56152 added to function.ord

From: Date: Thu, 25 Aug 2005 06:07:37 +0000
Subject: note 56152 added to function.ord
Groups: php.notes 
Request: Send a blank email to php-notes+get-94166@lists.php.net to get a copy of this message
For getting UTF16 value of Chinese ideographs: PLEASE ALWAYS use the uniord() ng4rrjanbiah at rediffmail dot com (#46267) but do not use #42778's method. native mbstring has problem with Chinese charset. For simplified Chinese it only (afaik) can deal with characters with GB2312 charset, that means a lot of person names will fail. for example, if you pass U+97E1 to uniord as provided by #42778 you will get value is 'E1', this is incorrect. the '97' part is ignored by mbstring when doing conversion. another suggestion is never use mb_convert_encoding for simplified Chinese at all. Use iconv instead. I am the one in greater trouble with it because my own name gets lots everytime mbstring wishing to convert something. ---- Manual Page -- http://www.php.net/manual/en/function.ord.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56152 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56152&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56152&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56152&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56152&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56152&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56152&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56152&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#94166) next »