"Liam Gibbs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I bet they do, did you check the HTML source as well? My guess is that the > > source is reading the actual expected output, but your browser views "é", > as > > it should of course. > Sorry, should have mentioned. The source code reads the actual character, > not the é. Hmmm... interesting... I tested your exact code in this format :
<?php $result[] = "é"; $result[1] = htmlspecialchars($result[0]); $result[2] = htmlentities($result[0]); foreach ($result as $val) { print ("[" . $val . "]"); } ?> which returned (sourcecode) [é][é][é] So with me, htmlentities works. Did you try this : $a = get_html_translation_table(HTML_ENTITIES); var_dump($a); ? With me, it returns a 99 elements array with loads of characters, including the "é". (PHP/4.2.3 on Win2000) I have no idea what might be the problem, what does your translation table look like? -- Ivo Fokkema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php