Hi guys: I am a chinese. These days, I am tring to use the request.getParameter() to get the value of the textarea. eg. <textarea name="message_content" rows="6" cols="42" ><%=messagecontent%></textarea> when the form submit I can get message_content value using the expression as follow: eg. messagecontent=request.getParameter("message_content")==null?"":request.getParameter("message_content"); but the strange thing is that : I can get the English characters in correct way, but the Chinese word will be strange! Anything wrong with me?? Thanx.
Use correct type of charset in your form tag and make sure that your browser supports it. You can do it using - <form action="whatever" method="whatevver" ACCEPT-CHARSET="en-us,more_values_here"> <!-- Your textfield here --> </form> Have a look at this for listing of charset http://www.w3.org/TR/REC-html40/types.html#type-charset HTH, - Manish
Joined: Jun 24, 2002
Thanx. I can get the traditional Chinese, Simple Chinese at the same time. I change the page's charset="GBK" .It's very important. I don't know why the GBK is correct and the GB2312 don't work.Could anybody do me a favor? Thanx.