The file path with double byte character would fail to open.
Hi,
I'm having trouble with opening file that has Japanese character in the file path.
somthing like:
----------------------------------------------------------------------
myfile = new File("/Users/junichi/Desktop/???.mqo"); // fine at this moment.
myfile.open(READ_MODE); // fails at this point.
OS.messageBox("Check", myfile.isOpen()); // returns false.
----------------------------------------------------------------------
So, I rename my file to 'test.mqo' and do the same again:
----------------------------------------------------------------------
myfile = new File("/Users/junichi/Desktop/test.mqo"); // fine at this moment.
myfile.open(READ_MODE); // good at this point.
OS.messageBox("Check", myfile.isOpen()); // returns true.
----------------------------------------------------------------------
Well, at this point the ONLY problem with 2 bytes character is to 'open()' method. In the other part, the Cheetah3d handles fine with double byte character like texture path.( tested in UI and reads texture correctly with 2 bytes path.):
So far, I do rename my file and folder name to ascii character to import from script, but it would be great if 'Open()' support the path with 2 bytes path.
Thanks,
Junichi Fukuhara
Hi,
I'm having trouble with opening file that has Japanese character in the file path.
somthing like:
----------------------------------------------------------------------
myfile = new File("/Users/junichi/Desktop/???.mqo"); // fine at this moment.
myfile.open(READ_MODE); // fails at this point.
OS.messageBox("Check", myfile.isOpen()); // returns false.
----------------------------------------------------------------------
So, I rename my file to 'test.mqo' and do the same again:
----------------------------------------------------------------------
myfile = new File("/Users/junichi/Desktop/test.mqo"); // fine at this moment.
myfile.open(READ_MODE); // good at this point.
OS.messageBox("Check", myfile.isOpen()); // returns true.
----------------------------------------------------------------------
Well, at this point the ONLY problem with 2 bytes character is to 'open()' method. In the other part, the Cheetah3d handles fine with double byte character like texture path.( tested in UI and reads texture correctly with 2 bytes path.):
So far, I do rename my file and folder name to ascii character to import from script, but it would be great if 'Open()' support the path with 2 bytes path.
Thanks,
Junichi Fukuhara