To change "é" to "é" you need htmlentities(), not htmlspecialchars as
the latter only translates ampersands (&), double quotes, less than en
greater than characters (Single quotes are not translated by default).

If htmlentities does not work, what does a var_dump on your
$translationtable send back?

Ivo

"Liam Gibbs" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > I have no idea what might be the problem, what does your translation
table
> > look like?
>
> Mine is still coming out as a single character. Here's my code, in case
> anyone can spot any stupid human error blunder I'm making:
>
>  $translationtable = get_html_translation_table(HTML_ENTITIES);
>  $string = htmlspecialchars($string);
>
> Also, here's my setup, just in case:
> PHP 4.3.1
> Linux 2.2.19 #1 i586
> Apache 1.3.27
> MySQL 3.23.49 (don't know what this has to do with it, but just in case
> there has been some interference with PHP and MySQL)
> GD 2.0 compatible
>



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

Reply via email to