Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)
like image 995
Saqib Ali Avatar asked Nov 08 '13 14:11

Saqib Ali


1 Answers

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

like image 70
Auston Avatar answered Nov 15 '22 08:11

Auston