OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: UTF-8, ISO8859-1, Swedish "problem"..

From: Magnus Bäck (magnusdsek.lth.se)
Date: Sat Oct 02 2004 - 07:08:53 CDT


On Saturday, October 02, 2004 at 13:53 CEST,
     Anders Norrbring <listsnorrbring.se> wrote:

> I don't know if I'm stupid, or ignorant, or if I just don't get it...
>
> To the "problem": If I write an e-mail in my MS Outlook where I use
> Swedish characters in the subject line, f.x. å ä ö, these characters
> displays perfectly well in the subject line in the receiving end, on
> both Windows and Linux systems.
>
> But, if some of my web sites does the same from either html or php,
> the subject line doesn't display these characters, but instead an X.
> F.x. the word "träff" displays as "trXff" when sent from the web
> sites, but correctly when sent from Outlook.
>
> In both cases the e-mails passes the same e-mail subsystem of Postfix
> and Cyrus-IMAP.

Whatever software that sends the mail does not properly encode the
non-ASCII characters according as prescribed by RFC 2047. Some software
involved doesn't like non-encoded 8-bit header contents and replaces
such with X's.

(The english equivalent of "t.ex." is "e.g.", not "f.x.".)

--
Magnus Bäck
magnusdsek.lth.se