![]() I suspect that if I could change this to "UTF8 English" then that may fix the problem, but since JFS2 stores filenames in Unicode and Java operates in Unicode internally, I feel like there should be a more general solution to the problem. I don't really know the full impact this setting has, but I cannot change it. My system's "Primary Language Environment", as configured by SMIT, is "ISO8859-1". My LANG and LC_ALL settings are en_US.UTF-8: % echo $LANG I've tried setting the file.encoding system property to UTF8 and the system property to UTF-8 to no avail. So it appears that my filenames are getting treated as Latin1. The results of this program are: % java -Dfile.encoding=UTF8 FileTest (expectedName + " DOES NOT exist") įor (File child : new File(".").listFiles())įor (char c : child.getName().toCharArray()) The filename is encoded in UTF-8, and was created by a C program: char filename = ) Let's assume I have a file named othér (where é is U+00E9 or UTF-8 bytes 0xc3 0xa9). I suspect there's a system property that I'm overlooking, but I have not yet been able to find it. ![]() ![]() ![]() I'm having trouble understanding the way the IBM JVM's implementation of java.io.File deals with UTF-8 on AIX on the JFS2 filesystem. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |