File.getName() and File.list() can't read arabic????
843785Aug 7 2008 — edited Aug 9 2008Uh, hey everyone,
I'm beginning to learn java, and I was messing around making a program to list all files and folders and subfolders, etc under a specified directory, and write the results to a text file. It works fine except for one thing: files that have their names in arabic show up as question marks or other strange characters.
So I tried making a simple program that reads text from a file and copies it into another file, and I put arabic text into the file, and it worked well!! I guess the problem is with the list() method then! I also tried it with getName(), and it also gives me the question marks.
Any ideas??
Thanks in advance :)