Willi Ballenthin 77fe0721dc fix: MIME Decoding corrupts non-ASCII characters in Base64-encoded words
fromBase64() defaults to returning a UTF-8 decoded string, which is then
passed to codepage.utils.decode() that treats each char code as a raw
byte.
For multi-byte UTF-8 characters, this double-decoding produces garbage
(e.g. "café" becomes "caf退").

Pass returnType="byteArray" so codepage receives raw bytes and performs
the single correct UTF-8 decode.

Closes #2280
2026-03-24 09:44:25 +01:00
..