Re: UnsupportedEncodingException for unicode-1-1-utf-7
Boris Folgmann <[email protected]> Fri, 27 Nov 2009 17:16:00 +0100
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
Hi Chris,
Chris Burdess schrieb/wrote:
> UTF7 is supported, however I have never heard of anything being
> identified as "unicode-1-1-utf-7". Do you have a copy of the original
> message to hand?
Cite from http://www.faqs.org/rfcs/rfc1642.html
-------------------------------------------------------------------------
Use of Character Set UTF-7 Within MIME
Character set UTF-7 is safe for mail transmission and therefore may
be used with any content transfer encoding in MIME (except where line
length and line break restrictions are violated). Specifically, the 7
bit encoding for bodies and the Q encoding for headers are both
acceptable. The MIME character set identifier is UNICODE-1-1-UTF-7.
Example. Here is a text portion of a MIME message containing the
Unicode sequence "Hi Mom <WHITE SMILING FACE>!" (hexadecimal 0048,
0069, 0020, 004D, 006F, 004D, 0020, 263A, 0021).
Content-Type: text/plain; charset=UNICODE-1-1-UTF-7
Hi Mom +Jjo-!
[...]
-------------------------------------------------------------------------
cu,
boris