posting of unicode data to servlet

From: Bhalchandra Patil (
Date: Wed Nov 29 2000 - 05:42:36 EST


i am running an servlet on weblogic ( jre 1.2). The html page should accept
input in any character set say chinese. That value is posted to the servlet.
I want to retrieve the unicode value of the character in the servlet.

In the html page, i have specified meta tag
<META HTTP_EQUIV="Content-Type" content="text-html; charset="UTF-8">

in servlet, i am using String str = request.getParameter("name")
str.getBytes("UTF8") does not work.

What should i do to get the unicode values of the characters entered.

Please help!!!!!


This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:15 EDT