File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes NIO MalformedInputException & German Umlauts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "NIO MalformedInputException & German Umlauts" Watch "NIO MalformedInputException & German Umlauts" New topic

NIO MalformedInputException & German Umlauts

Thomas Robertz

Joined: Jul 15, 2006
Posts: 1
I have an NIO server and wish to send messages containing german umlauts
such as �, �, �. This works fine on the local development machine but
on the internet server it throws an Excpetion:

java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(Unknown Source)
at java.nio.charset.CharsetDecoder.decode(Unknown Source)

I am using 1.5.0_06 on the server and 1.5.0_07 locally. The server is
also stationed in germany.

I am using this to get an ascii decoder:

I also tried defaultCharset() but that didn't work either.
Anyone have an ideo what I need to check?
I agree. Here's the link:
subject: NIO MalformedInputException & German Umlauts
It's not a secret anymore!