note 33618 added to function.utf8-encode

From: Date: Wed, 02 Jul 2003 00:17:24 +0000
Subject: note 33618 added to function.utf8-encode
Groups: php.notes 
Request: Send a blank email to php-notes+get-51329@lists.php.net to get a copy of this message
When you encode 2 consecutive special chars together, the behaviour is not totally ok. E.g.: $text = '<a href="">aquí</a>';//NOTE THE í< part $textshow = utf8_encode($text); echo $textshow; //it outputs &lt;a href=&quot;&quot;&gt;aqu&iacute/a&gt; //when it should be &lt;a href=&quot;&quot;&gt;aqu&iacute;&lt;/a&gt; ---- Manual Page -- http://www.php.net/manual/en/function.utf8-encode.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33618 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33618&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33618&report=yes

« previous php.notes (#51329) next »