Updates:
Status: Workneeded
Comment #1 on issue 6143 by
[hidden email]: MIME decoding and Unicode not
working
http://code.google.com/p/pharo/issues/detail?id=6143Switching nextPut:toStream to do
converter encoding -> internal instead of
internal -> converter encoding is not a good idea.
The escaped characters in the header are not Unicode values that should be
converted to ISO-8859-2 to get the internal string representation, it's the
other way around.
That is what decodeMimeHeader does though.
Instead, it should first do mime-decoding of escaped characters to end up
with an ISO-8859-2 string, THEN use the converter to convert said string
from 8859-2 to Unicode.
The multistream contents it compares against are fatally flawed as well, as
nextPut:'ing integer values rather than character does no conversion as
all, so you basically end up with the (latin1) version of the characters
array, and might as well have written asString.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker