Re: Re[2]: [PHP] ANSI to ISO-8859-2
| From: | Per Jessen | Date: | Mon, 22 Sep 2008 16:21:17 +0000 |
| Subject: | Re: Re[2]: [PHP] ANSI to ISO-8859-2 | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280706@lists.php.net to get a copy of this message | ||
Bc. Radek Krejca wrote:
> PJ> ANSI is not a character set, it's a standards organisation. You
> may PJ> have meant ASCII, and the string does look as if it could be
> ASCII.
> PJ> The sequences like &#xNNN are HTML-style symbolic entities. Take
> a PJ> look at htmlentities().
>
> This function encode strings, but I tried html_entity_decode, but
> withut success. So I have to make conversion table with all
> characters :-(.
>
Well, that's your choice, but I think I would investigate why
html_entity_decode() didn't work. Maybe also take a look at the
syntactical definition of the string you're parsing - is it supposed to
have embedded html symbolic entities?
/Per Jessen, Zürich