A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Java in General
NIO MalformedInputException & German Umlauts
Joined: Jul 15, 2006
Jul 15, 2006 08:28:00
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:
: 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:
_asciiDecoder = Charset.forName("ISO-8859-1").newDecoder();
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
Problem viewing German umlauts in certain Outlook 20003
PayPal and umlauts, char encoding
soap and utf-8 encoding issue
Problems with German umlauts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014