Saqib Ali
Saqib Ali

Reputation: 4428

java.io.UnsupportedEncodingException: unicode-1-1-utf-7?

Looks like OpenJDK can't handle unicode-1-1-utf-7? How can we remedy that?

Caused by: java.io.UnsupportedEncodingException: unicode-1-1-utf-7
        at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:71)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:100)
        at com.google.code.com.sun.mail.handlers.text_plain.getContent(text_plain.java:109)

Upvotes: 5

Views: 6219

Answers (1)

Auston
Auston

Reputation: 315

Apparently, UTF-7 is not a Java supported encoding: http://docs.oracle.com/javase/7/docs/technotes/guides/intl/encoding.doc.html

Workaround: 1. Download a jar in http://www.freeutils.net/source/jcharset/ 2. Put a jar implementation of this encoding in your buildpath/classpath

Upvotes: 7

Related Questions