[rt-users] Bug about subject in utf-8
Albert.Shih at obspm.fr
Fri Sep 2 10:08:59 EDT 2016
Le 01/09/2016 à 01:39:53-0700, Alex Vandiver a écrit
> And indeed, this does point to an RT bug. Namely, for historical and
> bad reasons, RT doesn't use the standard MIME-words decoding library,
> which would produce:
> > perl -MEncode -lE 'print Encode::encode("utf8",
> > Encode::decode("MIME-header",
> > "=?utf-8?q?Re=3A?==?utf-8?q?_=5BInfo?= Obspm =?utf-8?q?#31684=5D?= Bonjour =?utf-8?q?=C3=A0?= vous"))'
> > Re: [Info Obspm #31684] Bonjour à vous
> Instead, it rolls its own, and gets it wrong:
> > perl -Ilib -MRT=-init -le 'print RT::I18N::DecodeMIMEWordsToUTF8(
> > "=?utf-8?q?Re=3A?==?utf-8?q?_=5BInfo?= Obspm =?utf-8?q?#31684=5D?= Bonjour =?utf-8?q?=C3=A0?= vous","Subject")'
> > Re: [Info Obspm#31684] Bonjourà vous
> Specifically, it removes spaces before the second and later
> encoded-words, due to
> This looks to be a bug. I've pushed 4.2/encoded-word-spaces to
> address it; if you'd like to test the fix locally, you can apply
> https://github.com/bestpractical/rt/commit/bdd6bd96 .
Ok I just apply this fix, and everything seem to work nice.
Big thanks for the help.
> Thanks for the more complete bug report.
No thank you...
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : +33 1 45 07 76 26/+33 6 86 69 95 71
xmpp: jas at obspm.fr
Heure local/Local time:
ven 2 sep 2016 16:05:55 CEST
More information about the rt-users