[imp] problem with attachments in unicode (UTF16)
Tim Bannister
Tim.Bannister at manchester.ac.uk
Tue Mar 25 09:17:54 UTC 2008
> > So it becomes corrupted when opened in Outlook or Thunderbird.
>
> I tested this with Iceweasel (Firefox) 2.0.0.12 on Debian Unstable as the
> client, and the latest stable releases of Horde and IMP with PHP5 on
> Debian Etch as the server. The browser says the content-type is
> text/plain when it uploads the attachment. Here is the exact attachment
> that was sent in the email:
You haven't mentioned what encoding the browser claimed when uploading the
file. For this to work, the browser needs to upload the file with
metadata like this:
Content-Type: text/plain; charset=UTF-16
I don't think my main browser would get the upload part right. It tends
to be guesswork on most systems as filesystem metadata (etc) are not
trustworthy enough.
--
Tim Bannister
IT Services division
The University of Manchester
w: http://www.manchester.ac.uk/itservices
More information about the imp
mailing list