Many MINIJ2EE users ask MINIJ2EE how to handle Chinese content submitted in Form. In fact, MINIJ2EE's manual has already been mentioned, the Unistring class provided using Minij2ee can solve this problem very well. The following is a simple SAMPLE.
<% @ Page ContentType = "Text / HTML; Charset = GB2312"%> <% @ page import = "com.minij2ee.UTIL.UNISTRING"%> <% unistring name = new unistring (Request.GetParameter ("name") , "ISO-8859-1");%>
转载请注明原文地址:https://www.9cbs.com/read-29247.html