I decide write a program that list all of the files and directories, but have a problem when dealing with non-english filename.
The problem is that my program cannot gurantee those directories and filenames are in English, if some filenames using japanese, chinese character it will display some character like '?'.
J2SE provide variety of java.io.File list() functions http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html
But it seems do not deal with non-english filename.
Do anyone have the same problem? What direction should I look for the solution?
I search in google using keywords like "java list non-english filename", "java.io.file list non-english filename", but unfortunately I can't find the solution.
Hope people bring some thoughts to me, no matter searching keywords in google, or program directions.
Thanks~