5

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)
2
  • 1
    Duplicate of Loading a Java Charset manually Commented Nov 8, 2013 at 14:58
  • 5
    You can download a UTF7 implementation jar file from a third party such as sourceforge.net/projects/jutf7 Copy the jar file to the $JAVA_HOME/jre/lib/ext directory and restart the probe Commented Nov 8, 2013 at 15:22

1 Answer 1

7

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.