[imp] IMP sends out message in character set it doesn't understand?

Jan Schneider jan@horde.org
Thu, 27 Dec 2001 17:14:25 +0100


Zitat von Lloyd Zusman <ljz@asfast.com>:

> I'm using 3.0-RC4, and I just used IMP to send a message to this
> mailing list.  A minute or two later when I saw the message
> show up in my mailbox, I also used the same session of IMP to
> read it.  The following notice appeared in italics at the top
> of my message:
> 
>   "This message was written in a character set other than your own.
>   If it is not displayed correctly, click here to open it in a new 
>   window."
> 
> Since I used the same session of IMP to send and read this message,
> it seems strange to me that I should get this notice.
> 
> I never noticed anything like this happening when using my previous, 
> 2.3.7 version of IMP.

This was added recently.
 
> Any ideas as to why this occurred, and how it can be prevented?
> 
> In case any of this matters, I'm using Netscape 6.2.1 under WinNT4.0 
> to access my email via IMP.  The server where horde is installed is 
> running FreeBSD-4.0 and PHP 4.0.6-dev, with a very recent version
> of postfix as the sendmail implementation.

The Accept-Charset header that your browsers sends to imp is utf-8 but the 
Content-Type that is used to display your imp translation has a different 
charset. This is where the diffenence come from.

Hm, this causes some questions to me: What does browsers do if they get a 
page in a charset that is not in the accept-charset header? IE displays the 
page in this charset if it is installed and tries to download it if not. 
But what about other browsers?

Should we rather use the charset that we use to display the pages instead 
of the one that browser sends?
Or should we check the whole accept-charset header if we find a charset the 
matches the translations one and use this or fall back to the old behaviour 
if we don't find it?

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::