0

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?

Gabriel Mendez
  • 1,115
  • 1
  • 9
  • 28

1 Answers1

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

How to Find the Default Charset/Encoding in Java?

Community
  • 1
  • 1
Arve
  • 8,058
  • 2
  • 22
  • 25
  • 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