Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

File.getName() and File.list() can't read arabic????

843785Aug 7 2008 — edited Aug 9 2008
Uh, 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 :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 6 2008
Added on Aug 7 2008
16 comments
1,727 views