Page 1 of 1

à character ruining my day!

Posted: Wed May 05, 2010 3:02 pm
by ajlisowski
Hey all I have a discussion system. In it, all members of the discussion get emailed upon a new reply.

You can reply directly to the email, above the "do not edit" line to create a response in the thread.

Everything works great, except my boss recently started seeing this character à all over the place. Any idea what is causing it?

Re: Ã character ruining my day!

Posted: Wed May 05, 2010 3:11 pm
by requinix
It typically means a mismatch in character encoding. Somewhere you're using UTF-8, which is great, but your HTML pages and/or emails are trying to use something else - perhaps ISO 8859-1.

They all need to be the same. For webpages you can

Code: Select all

header("Content-Type: text/html; charset=utf-8");

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
and for emails,

Code: Select all

Content-Type: text/html; charset=utf-8
goes in the headers passed to mail().