note 90748 added to function.html-entity-decode

From: Date: Thu, 07 May 2009 20:49:50 +0000
Subject: note 90748 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-154328@lists.php.net to get a copy of this message
@jojo from Nov 2006: Your solution worked perfectly for me. I tried UTF-8 conversion using various methods for most of the day, trying to get UTF-8 output. I found your code and adjusted the output character code to UTF-8 in order to get that desired output. What was not clear in anything else that I had read was that the input character format (%uXXXX%uXXXX) by the javascript escape() function appears to be UTF-16 when it's posted to a webserver.. That explains why you set that as the character code for the string being input to the function. My particular problem was that I had some javascript: escape('some Chinese characters <user@domain.com>'); and the Chinese characters were being converted to %uXXXX%uXXXX while getting posted to the webserver. No built in functions that I could find worked properly to make the conversion. Thanks! ---- Server IP: 209.41.74.194 Probable Submitter: 208.89.136.20 ---- Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php Edit -- https://master.php.net/note/edit/90748 Del: integrated -- https://master.php.net/note/delete/90748/integrated Del: useless -- https://master.php.net/note/delete/90748/useless Del: bad code -- https://master.php.net/note/delete/90748/bad+code Del: spam -- https://master.php.net/note/delete/90748/spam Del: non-english -- https://master.php.net/note/delete/90748/non-english Del: in docs -- https://master.php.net/note/delete/90748/in+docs Del: other reasons-- https://master.php.net/note/delete/90748 Reject -- https://master.php.net/note/reject/90748 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#154328) next »