Hindi fonts are not getting displayed in browser?

Saturday, July 5, 2014

I am using UTF-8 encoding to display hindi fonts in servlet but hindi fonts are displaying in following format -



शपथ à¤à¤¯ à¤à¤° à


I am using following code-



response.setContentType("text/html; charset=UTF-8");
StringWriter writer = new StringWriter();
t.merge(context, writer);

String s = writer.toString();


Please help me?







http://ift.tt/1xuWqOf