I have been trying to download attachment with Chinese filename but somehow their encoding changes while downloading and some gibberish filename is saved where there are Chinese chararchters.
Technology: Java Server: Apache Tomcat
This is what I've tried already
response.setHeader("Content-Disposition", "attachment; filename="7_6_4_AM__2017_JS_003_南通凤凰服装_B1_108"");
Output(Downloaded attachment name): "7_6_4_AM__2017_JS_003_W_äð"
I've also tried appending * to filename directive after referring to :
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
response.setHeader("Content-Disposition", "attachment; filename*="7_6_4_AM__2017_JS_003_南通凤凰服装_B1_108"");
Output(Downloaded attachment name): "706.txt"
Also,
In my research I found that HTTP header messages cannot carry characters outside the ISO-8859-1 character set.
https://www.rfc-editor.org/rfc/rfc5987
Thanks in Advance.