I have an input file in a specific encoding (utf8), from which I create different files whose names and contents (again utf8) are taken from this input file.
My problem is that one particular Windows system created files do not have the correct characters. The contents of these files are readable, but their names are not. Instead, the Ü.xmlfile has a name ├£.xml.
On other Windows systems, everything is working fine.
The encoding of the contents of the file can be set in the OutputStreamWritersecond argument, but the encoding of the file name cannot be set to new File(name). It seems.
Thank.
source
share