M
mwaller
I'm having a bit of an issue with filenames on Korean systems.
We use the native file dialogs on Win32 (the customer insisted), and
consequently use JNI to access them. This makes life a little
complicated as we have to dip into JNI to get the filename, use it in
various classes in Java to create temporary files for the customised
file format, then save the actual file in JNI.
Using guidelines from Sheng Liang's 'The Java Native Interface' book
I'm using the String getBytes() and new String(byte[]) to convert to
the default locale, instead of GetNewStringUTF.
I can now save files on Korean W2K, but the resultant file cannot be
opened by double clicking unless it is renamed (in DOS) first. (my
'tester' is on the other side of the world as I haven't got a Korean
Windows to hand, and this is what he reported.) Opening the
application then opening the file works.
Any ideas?
mlw
We use the native file dialogs on Win32 (the customer insisted), and
consequently use JNI to access them. This makes life a little
complicated as we have to dip into JNI to get the filename, use it in
various classes in Java to create temporary files for the customised
file format, then save the actual file in JNI.
Using guidelines from Sheng Liang's 'The Java Native Interface' book
I'm using the String getBytes() and new String(byte[]) to convert to
the default locale, instead of GetNewStringUTF.
I can now save files on Korean W2K, but the resultant file cannot be
opened by double clicking unless it is renamed (in DOS) first. (my
'tester' is on the other side of the world as I haven't got a Korean
Windows to hand, and this is what he reported.) Opening the
application then opening the file works.
Any ideas?
mlw