I am trying to display Hindi fonts on JSP through property file. My property file named as Messages.properties contains following key-value pairs:
basic.title = कृषि ऋण basic.menu1 = ये आपके लिए क्यूँ सही हैं basic.menu2 = ब्लॉग basic.menu3 = टूल
My JSP code to read this property file is as follows:
<%@ page import = "java.util.ResourceBundle" %>
<% ResourceBundle resource = ResourceBundle.getBundle("Messages");
String title=resource.getString("basic.title");
String menu1=resource.getString("basic.menu1");
String menu2=resource.getString("basic.menu2");
%>
Now I am accessing value of title in my JSP as follows
<%=title%>
But it gives output shown in following image:
I have also follow solution
Please suggest me, what can I do next ?