Quantcast
Channel: reading file with accented characters in Java - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Thorbjørn Ravn Andersen for reading file with accented characters...

Both characters are present in ISO-Latin-1 (check my name to see why I've looked into this).If the characters are not read in correctly, the most likely cause is that the text in the file is not saved...

View Article



Answer by Matt Ball for reading file with accented characters in Java

ISO-8859-1 covers ß and ø, so the file is probably saved in a different encoding. You should pass in file's encoding to new InputStreamReader().

View Article

Answer by WhiteFang34 for reading file with accented characters in Java

Assuming that your file is probably UTF-8 encoded, try this:InputStreamReader ir = new InputStreamReader(inputFile, "UTF-8");

View Article

Image may be NSFW.
Clik here to view.

reading file with accented characters in Java

I came across two special characters which seem not to be covered by the ISO-8859-1 character set i.e. they don't make it through to my program.The German ßand the Norwegian øi'm reading the files as...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images