Java File can't open certain files
I'm trying to open files from within Java with something like this: java.awt.Desktop.getDesktop().open(new File("c:\\coolfile.txt"); Of course, it all works fine and dandy in most cases. HOWEVER! When I have a file with the unicode character u3000, I cannot open it! Even if the file exists. For example: java.awt.Desktop.getDesktop().open(new File("c:\\coolfile\u3000withweirdname.txt"); I get an Exception, EVEN WHEN THE FILE EXISTS [java] java.io.IOException: Failed to open file:/E:/_prog/test%E3%80%80.txt. Error message: The system cannot find the path specified. Please help me! I tried pretty
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.