Transkribus / TranskribusSwtGui

Note: the repo has been moved to https://gitlab.com/readcoop/Transkribus/TranskribusSwtGui
GNU General Public License v3.0
18 stars 4 forks source link

HTTPS Upload: Issue with encoding of filenames on Windows #190

Closed kahlep closed 6 years ago

kahlep commented 6 years ago

When uploading a document containing files with special characters in its names from a Windows machine, the filenames will be messed up on the server-side and the upload can never finish. Happens when using Jersey's FileDataBodyPart and MediaType.MULTIPART_FORMDATA_TYPE.

Issue can be fixed by specifying the Java System property "file.encoding" to be UTF-8 on client side. Setting that programmatically does not not work as respective objects are initialized and cached during JVM startup and thus a parameter has to be added when starting up the JVM.