Re: html_entity_decode () for …, ’, etc.

From: Date: Wed, 10 Aug 2005 21:12:49 +0000
Subject: Re: html_entity_decode () for …, ’, etc.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-220381@lists.php.net to get a copy of this message
Richard Lynch wrote:
On Wed, August 10, 2005 11:55 am, Marco wrote:
I tried using html_entity_decode () but why won't these characters decode: ’ – … “ ”
WILD GUESS: Those are not standards-based, and are some made-up Microsoft crap?
Nah, they are standard HTML entities. Depending on your PHP version, you may like to try playing with the third parameter, perhaps setting it to "UTF-8". See the following URL for more information: http://www.php.net/html_entity_decode AFAIK multibyte encodings such as UTF-8 aren't supported by some PHP versions though. It may be a PHP 5 feature? Jasper

« previous php.general (#220381) next »