This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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!