PDA

View Full Version : special characters


Marc
03-16-2009, 03:27 AM
hi,


if my users fill out a contact form with special characters ö,ä etc...
i get the mail as follow

"möchte"

but this should be "Möchte"
how can i change this?


thanks
Marc

Ray Borduin
03-16-2009, 08:06 AM
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">

Try adding a charset meta tag to the top. UTF-8 usually works, but you can experiment with others until you find one that works for your character set.

Marc
03-16-2009, 11:38 AM
txs ray
but this one is already in the page. could it be that i have to change settings in my windows live mail programm?

Ray Borduin
03-16-2009, 01:31 PM
You may have to add it to the html that is in the sent message itself as well.

Marc
03-17-2009, 12:19 AM
is already there

$MailBody = $MailBody . "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n";

Ray Borduin
03-17-2009, 07:29 AM
Maybe try:

charset=ISO-8859-1

Marc
03-17-2009, 09:47 AM
ok ray,

the only thing helped me is to set my windows live mail font settings to "unicode" and encoding to "utf-8"
unfortunately i don't know if the users are getting a copy of the mail have these settings too :(

txs for trying

marc