Page 1 of 1

Italian character madness

Posted: Tue Sep 21, 2010 9:12 am
by klevis miho
When I do this:
echo 'à';

it prints:
Ã

How can I avoid this?

Re: Italian character madness

Posted: Tue Sep 21, 2010 10:47 am
by McInfo
What character set is your file encoded in? Does the server send the appropriate Content-Type header?

For example, if the page is encoded in UTF-8, the server should send this Content-Type header:

Code: Select all

Content-Type: text/html; charset=UTF-8
If the file is encoded in UTF-8 and the browser thinks it is ISO-8859-1, "à" will look like "Ã".