Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

chinese problem

0 views
Skip to first unread message

wliu

unread,
Jan 12, 2002, 3:33:27 AM1/12/02
to
Now I have meet a problem of chinese input on the html page.The jsp can show
a chinese word "炘" ,but if I input the word in a text input box on the jsp
and submit the form,I can not get it by request.getPatameter().
The jsp source is :
<%@ page contentType="text/html; charset="GBK"%>
<%
String a=request.getParameter("test");
String b="炘";
String c=request.getCharacterEncoding() ;
%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">

</head>

<body>
<form action="/test.jsp" method=post>
<input name="test" value="" onblur="alert(this.value);">get:<%= a%>show:<%=
b%>
<input type="submit" >
</form>
</html>


Laura

unread,
Jan 15, 2002, 1:44:41 PM1/15/02
to

You might try setting the input charset:

On WLS 5.1 you can do this by setting the:

weblogic.httpd.inputCharset.<Dir name>=<charset name>

Please see the following URL for more information:

http://www.weblogic.com/docs51/classdocs/SERVICEPACK_README.html#release_notes

On WLS 6.0 set this value in web.xml --

http://edocs.bea.com/wls/docs60/adminguide/config_web_app.html#100357

On WLS 6.1 set the appropriate elements in weblogic.xml --

http://edocs.bea.com/wls/docs61////webapp/weblogic_xml.html#1031837

Hope this helps.


Laura

Developer Relations Engineer -- BEA Support


"wliu" <wliu...@21cn.com> wrote:
>Now I have meet a problem of chinese input on the html page.The jsp can
>show

>a chinese word "&#382;Ô" ,but if I input the word in a text input box on the


>jsp
>and submit the form,I can not get it by request.getPatameter().
>The jsp source is :
><%@ page contentType="text/html; charset="GBK"%>
><%
> String a=request.getParameter("test");

> String b="&#382;Ô";

0 new messages