开发者

Spanish characters are displayed as Symbols when rendered using JSP

Earlier i had a issue with spanish character encoding in Java encoding and for which i got solution in Issue with spanish characters in java string.

Now when i want to display the contents in the JSP i am getting strange symbols in the page. When i had break point in JSP the contents are fine but in t开发者_如何学Pythonhe page i see symbols in place of spanish characters

Example - "D�le" is displayed in place of "Déle".

I have added the page content in my JSPs

<%@ page contentType="text/html; charset=UTF-8" session="false" %>

Please help me to solve the issue.

Thanks in advance


is it charset UTF-8 or ISO-8859-1 for Latin? Also, the browser, and the font all have to have the support for the charset and special characters used (For example: Verdana should work fine) Is the browser rendering other spanish content (from www) properly?


Try setting the following as well:

<%@ page pageEncoding="UTF-8" %>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜