Issue
I have one Java program that browse the path of our local file system, for this we have used JFileChooser. If folder name is in simple English works fine on Windows, Mac OS X and Linux. But If I create folder named special character like - ábc Eóz then it shows that special character name on Windows and Linux only, but on OS X I am unable to see those special character folders. It ignore them from list of folders.
My program is built on java 7 update 21. Mac OS X version - 10.8.2
How can I solve this issue?
Thanks
UPDATE : We are creating an app for Mac using JavaFX packaging. When we are running app.jar directly, it showing me path containing special char. But if we are trying to launch application using app then it skipped that special char folders.
Solution
As we are building app using JavaFX packaging and we have our customized Info.plist kept inside ..buildscript_path/package/macosx/ folder at local path.
The problem of ignoring special characters get resolved by adding following keys to Info.plist.
<key>LSEnvironment</key>
<dict>
<key>LANG</key>
<string>en_US.UTF-8</string>
</dict>
On adding this line of code into info.plist, then building app solved my issue.
Thanks
Answered By - Neelam Sharma
Answer Checked By - Mary Flores (JavaFixing Volunteer)