Oliver Spiesshofer wrote:
Hi,
I am trying to send emails with the php Mail function, but umlaut and other
special characters are not displayed correctly. Actually they are replaced
by large X's. I checked if there is an error on the receiving side, but
both thunderbird and squirrelmail do the same!
any Idea what is wrong? do I have to make a mb_string_recode? but to what
charset?
The emails are sent in UTF-8 encoding, and the umlaute in the email body
display just perfectly!
Oliver
Are you saying they appear correctly in the email body, but not in the
headers (subject, etc.)?
I think internet headers have to be sent as 7-bit data. To send non-ASCII
characters you have to use an "encoded word" as defined in RFC 2047. For
example, "München" can be encoded like this:
=?iso-8859-1?q?M=FCnchen?=
Obviously that uses iso-8859-1 encoding, but you get the picture.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
PHILIP A. RONAN
Freelance Japanese Translator
205 Hamlin Lane, Exeter EX1 2SQ, England
Tel/Fax: +44 (0) 1392 435019
Email:
ma**@japanesetranslator.co.uk http://www.japanesetranslator.co.uk
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=