This discussion is archived
3 Replies Latest reply: Feb 25, 2013 12:29 AM by 974868 RSS

Java 7 Mac OS X file name encoding

974868 Newbie
Currently Being Moderated
I'm a little confused about that. Running this two lines of code:

File file = new File("täst.txt");

from Netbeans 7.2.1, JDK 1.7.0_15 on OSX 10.8.2 will result in a file named: "t?est.txt"
But running the same with JDK 1.6.0 will create "täst.txt".
I've set everthing (I hope so) to UTF-8 and


prints out UTF-8.
Anything wrong with Java 7 on Mac?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points