Display international language characters in JSP
IE 8 and Firefox 21. Tried to display international characters (such as Chinese characters along with the English characters) in a JSP.
I copy a Chinese character and pasted in a input field. It looks as it should be at first. Then I save it to the database (Oracle 11 and set to AL32UTF8 to handle multi-byte characters). Next retrieve the text and display it in a jsp. Now the character becomes the garbage character.
The JSP is set to
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<form id="frm" action="testPage.htm?cmd=loadPage&pageName=home" method="post" enctype="multipart/form-data" acceptCharset="UTF-8">
How to solve the problem?
If it's not, you should configure your server to output the correct HTTP headers:
If that's not the issue, then I'd imagine you have (A) multiple conflicting
|All times are GMT +1. The time now is 01:48 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.