Reputation: 179
Have a simple java web application that uses a dictionary api to fetch data and shows it on a JSP.
But this character from the XML file is showing a question mark when processed?
Here you can see the character showing a ? instead of the original.
How can this be solved? Thanks for your time.
Upvotes: 1
Views: 1341
Reputation: 933
Try adding this in your web.xml
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<page-encoding>UTF-8</page-encoding>
</jsp-property-group>
</jsp-config>
If you have only one such jsp you can try adding the following page directive in the jsp
<%@page pageEncoding="UTF-8" %>
Upvotes: 1