Re: Accented character 'echo'ed randomly
| From: | Satyam | Date: | Tue, 05 Apr 2005 08:31:24 +0000 |
| Subject: | Re: Accented character 'echo'ed randomly | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212244@lists.php.net to get a copy of this message | ||
Do you have a :
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
in the <head> section?
Sometimes the browser tries to figure out the charset, just as it figures to
assume an </p> when it finds a new <p> and if figures out so many things,
sometimes it simply fails. Otherwise, use htmlentities() to escape
characters not plain USASCII
Satyam
"John Coppens" <info@jcoppens.com> wrote in message
news:20050404213708.45697d51.info@jcoppens.com...
Hi people.
I submitted the issue below to the bug site, but the people there
suggested I present it here. I've tried some more, but until now, I
couldn't find any cause for the problem.
Any suggestion would be appreciated!
John
--------------------
Description:
------------
I have a very simple web-page script with mainly 'echo' commands.
Randomly the accented characters are replaced
by question-marks. If or not the question mark appears
seems to be depending on the page contents, though at least
in one of the cases, the only thing that changes in the
page is a GIF image.
All this happens in the same html-session, using the same
script.
I've seen other -similar- reports, though none about 'echo'.
I can't be sure if this is an apache problem or php-related.
Sorry if was already solved... Please indicate.
Reproduce code:
---------------
echo "Página Índice";
Expected result:
----------------
Página Índice
Actual result:
--------------
Randomly
Página Índice
P?gina ?ndice