Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

German Umlauts in XML-File

843834Apr 1 2006 — edited Apr 1 2006
hi guys,

i have a big (at least for me :P) problem:
i have to parse a xml-file which contains german umlauts. the encoding in the xml-"header" is set to "ISO-8859-1". the umlauts in the file are like this: "Ö" (html-style).
now i'm parsing the xml-file and saving some names in a hashtable. associated to every name is a vector.

my problem: i don't know how java saves the umlauts in the hashtable!
i always get a nullpointerexception when i try to get the size of a vector associated to a name containing umlauts!

i'm totally confused with all the encodings and charsets...
guess it ain't a big problem, but actually i don't see how to solve it...

hope you can help me! :)

thx
PL
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2006
Added on Apr 1 2006
1 comment
488 views