"Liam Gibbs" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > I think php.net/htmlentities will do this.
>
> Apparently it *is*, but it won't for me. Any problems with this code?
>
> $result[] = "é";
> $result[1] = htmlspecialchars($result[0]);
> $result[2] = htmlentities($result[0])
http://hotwired.lycos.com/webmonkey/reference/special_characters/
should have all you want
From: "Liam Gibbs" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Subject: [PHP] HTML equivalents of accented characters
Date: Mon, 11 Aug 2003 14:18:37 -0400
I don't think this has been discussed, a
> 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 = h
> 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 é.
--
PHP General Mailing List (ht
> I think php.net/htmlentities will do this.
Apparently it *is*, but it won't for me. Any problems with this code?
$result[] = "é";
$result[1] = htmlspecialchars($result[0]);
$result[2] = htmlentities($result[0]);
Both return the accented E unchanged.
--
PHP General Mailing List (http://www.p
I think php.net/htmlentities will do this.
On Monday 11 August 2003 11:18 am, Liam Gibbs wrote:
> I don't think this has been discussed, although I'm not really sure what
> you would call these accented characters, so I haven't been able to do a
> complete search of the archives, so apologies if
Hello,
This is a reply to an e-mail that you wrote on Mon, 11 Aug 2003 at
19:18, lines prefixed by '>' were originally written by you.
> I don't think this has been discussed, although I'm not really
sure
> what you would call these accented characters, so I haven't been
able
> to do a complete se
"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 sou
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 bac
9 matches
Mail list logo