Skip to content
Advertisement

JSP can’t display Russian characters

I have a JSP file that contains paragraphs with Russian text. However, no matter what I do I can’t get a browser to display that text – instead all I get is hieroglyphs.

The same text but in a simple HTML file without any headers or declarations works fine:

JavaScript

But the moment I save that file as JSP and try to view it in a browser the text gets broken.

I tried

JavaScript

Also I tried

JavaScript

But neither works. My file is in UTF-8 encoding.

Advertisement

Answer

jsp is most likely not using utf-8 ,try

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement