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.
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.