[rt-users] latin <-> utf problem in rt-mailgate
Palle Girgensohn
girgen at pingpong.net
Mon Dec 8 11:23:06 EST 2003
Hi!
I just got this problem with an email sent to RT, one text part in the
ISO-8859-1 charset, and two jpeg images.
Problem is, both jpegs are corrupt and the text in the message is presented
converted to utf-8 *twice* (i.e. four bytes, an ö is tranferred as "ÃÂ¥").
See the attached image for info. Emails look the same, and only the text
that was delivered to RT as an attachment (well, the text part on en email
that had two images attached, really, but that is technically an attachment
too...).
In the database, the text is stored in the described (false) way, so this
must be en error in mail gateway.
Here is the tuple in the database. Perhaps the contenttype is bad?
id | transactionid | parent | messageid | subject | filename |
contenttype | contentencoding | content | headers | creator | created
----
1571 | 1847 | 1570 | | | |
text/plain |
none | Aktivitetens logga (149x65) får lite fin luft omkring
sig på Meny men
under Lektion blir den intrÀngd i hörnan. Det senare ser inget vidare
ut. Har bara testat som LÀrare.
Se bifogade bilder.
| content-type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 485
| 51 | 2003-12-05 16:45:51
(1 row)
If you need it, I can send you the original email as well.
Setup: Perl 5.8.1, RT 3.0.7, postgresql-7.4, freebsd 4.9.
/Palle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fel_klippt.png
Type: image/png
Size: 9621 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20031208/0a996288/attachment.png>
More information about the rt-users
mailing list