Hi all,

I want to use <init-param> in one of my webapps, as follow
<init-param>
<param-name>parameter</param-name>
<param-value>abc,abc,&#x9090;&#x9090;,abc,abc</param-value>
</init-param>

When I call String a = getInitParameter("parameter"), it set a to
"abc,abc,?,?,abc,abc" . However, what I want is
abc,abc,&#x9090,&#x9090,abc,abc.(no character encoding is needed, just as
plain text). When I call a.getBytes("US-ASCII"), I found that the &#x9090;
is converted to ascii 3f(?), so I guess I must config somewhere else. Is
there any way to do escape in web.xml file?

Thank you very much

Mike

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to