note 70154 added to function.utf8-decode

From: Date: Wed, 04 Oct 2006 21:38:22 +0000
Subject: note 70154 added to function.utf8-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-118067@lists.php.net to get a copy of this message
enhanced UTF8-Decoder After recognising that UTF8-Decode converts some French Characters to "?" i end with that Function. The space will be need when a String ends with a converted Char ( a buggy Php Function will fit a /hex00 char at the End ) function utf8dec ( $s_String ) { $s_String = html_entity_decode(htmlentities($s_String." ", ENT_COMPAT, 'UTF-8')); return substr($s_String, 0, strlen($s_String)-1); } Hope it helps ... cost me a lot of time ... ---- Server IP: 66.163.161.117 Probable Submitter: 84.187.209.184 ---- Manual Page -- http://www.php.net/manual/en/function.utf8-decode.php Edit -- https://master.php.net/note/edit/70154 Del: integrated -- https://master.php.net/note/delete/70154/integrated Del: useless -- https://master.php.net/note/delete/70154/useless Del: bad code -- https://master.php.net/note/delete/70154/bad+code Del: spam -- https://master.php.net/note/delete/70154/spam Del: non-english -- https://master.php.net/note/delete/70154/non-english Del: in docs -- https://master.php.net/note/delete/70154/in+docs Del: other reasons-- https://master.php.net/note/delete/70154 Reject -- https://master.php.net/note/reject/70154 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118067) next »