I found a strange problem that for the same file loading code work very well in OSX but not in Windows. The chinese filename get corrupted in Windows but not in OSX. I'm using Jersey 1.9 and the server is running Node.js. Is it a Java problem or Jersey?
here is my code:
FormDataMultiPart form = new FormDataMultiPart();
form.bodyPart(new FileDataBodyPart("thumbnail", file));
System.out.println("******************** =" + file.getName());
String s = clientResource.path("uploadTagFile").path(tagid)
Taking a wild stab in the dark here.
Are you printing out logging info in the console and reading that? Windows console is bad at supporting any proper charsets, so you could just have UTF-8 fudged by windows.