note 34331 added to function.mb-convert-kana

From: Date: Thu, 24 Jul 2003 02:33:52 +0000
Subject: note 34331 added to function.mb-convert-kana
Groups: php.notes 
Request: Send a blank email to php-notes+get-52536@lists.php.net to get a copy of this message
It seems that mb_convert_kana() doesn't convert symbols such as ' (single quoatation). It affected my program when I insert data into database. So, I've found 2 ways to solve this. 1) Use Javascript to convert those non-supported symbols before sending query string to your php page. 2) Use php function, str_replace $str, to replace those non-supported symbols. For example, $str = str_replace("'", "’", $str); where the first single quot is half-width(han kaku), and the second one is full-width(zen kaku). ---- Manual Page -- http://www.php.net/manual/en/function.mb-convert-kana.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34331 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34331&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34331&report=yes

« previous php.notes (#52536) next »