HTTP headers encoding/decoding in Java

Again: RFC 2047 is not implemented in practice. The next revision of HTTP/1.1 is going to remove any mention of it.

So, if you need to transport non-ASCII characters, the safest way is to encode them into a sequence of ASCII, such as the “Slug” header in the Atom Publishing Protocol.

Leave a Comment