Java Servlet File Name With Special Characters Is Not Showing Correctly In File Download Dialog

  • Posted April 13, 2017
  • Java

When trying to download the files using the java servlets with special characters in filenames like “昨夜のコンサートは最高でthúy ngọc.xlsx” is showing the boxes in file download dialog for IE11 and Firefox 45 browsers. Please do help in this regard.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @sreenivasulu

Is your entire project and database UTF-8 or UTF-16 enabled all the way? And make sure the webpage also defines charset.

This usually happens when some places supports UTF, but other places define another charset.