Receiving MalformedInputException message when using UTF-8 encoding
To resolve an exception message that you might get when
you are using UTF-8 encoding, check the environment variables that
are locale-specific. If the environment variables end with UTF-8 suffix, remove the UTF-8 suffix.
Symptoms
If your system locale is using a UTF-8 encoding, you might get sun.io.MalformedInputException message when using some SDK tools.
Resolving the problem
To find out whether your system is using a UTF-8 encoding,
examine the locale-specific environment variables, such as LANG or LC_ALL attributes to see if
they end with the suffix UTF-8.
To resolve the sun.io.MalformedInputException message, change the characters that
are not in the 7-bit ASCII range (0x00 to 0x7f) and are not represented as Java™ Unicode character literals to Java Unicode character literals, for example:
\u0080.
You can also work around this problem by removing the UTF-8 suffix from the locale-specific environment variables.
For example, if your computer has a default locale of en_US.UTF-8, set
LANG to en_US.