I need to read and display some .csv files in my java application. The .csv files have some european special accented characters (french) that are displayed correctly when I run my app in Windows, but, when I run the app under Mac OS X, the special characters are corrupted. How can I keep and show my characters in both systems?
Asked
Active
Viewed 1,427 times
1 Answers
1
Can you check if you are using different default charsets?
Charset.defaultCharset()
Here are two possible pointers:
Java : How to determine the correct charset encoding of a stream
-
Thanks for your answers. The files are inside the application .jar, so, I am using .getClass().getClassLoader().getResourceAsStream("filename") to get an InputStream and load it in a InputStreamReader. – Gabriel Mendez Feb 17 '11 at 23:18