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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux