When I do this:
echo 'à';
it prints:
Ã
How can I avoid this?
Italian character madness
Moderator: General Moderators
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
Re: Italian character madness
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:
If the file is encoded in UTF-8 and the browser thinks it is ISO-8859-1, "à" will look like "Ã".
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