note 90748 deleted from function.html-entity-decode by danbrown

From: Date: Thu, 07 May 2009 20:50:29 +0000
Subject: note 90748 deleted from function.html-entity-decode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154329@lists.php.net to get a copy of this message
Note Submitter: tlyons at ivenue dot com ---- @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!

« previous php.notes (#154329) next »