The "&#xxx;" coding you see is not related to URLDecoding actually I think.
That is UTF-8 encoding, which is the java default when handling special
characters.URLDecoder / URLEncoder do stuffs like changing spaces to "+" and
"/" to "%2F", which makes a string URL friendly.
Hope this helps.
Best,
Albert
----- Original Message -----
From: "Lee Turner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 6:54 PM
Subject: Special Characters
Hi
I am testing my application by trying it out with special characters. I
have entered űŰ (with squiggly on top for those readers that don't see them)
in a field in the form. This gets translated into űŰ when sent to
the server. However, when I try to decode this back to it original form (
java.net.URLDecoder.decode(req.getParameter("username")) ), it stays the
same and therefore űŰ gets entered into the database (Oracle).
Is this correct when using these characters or am I missing something ??
Cheers
Lee
_________________________________
Lee Turner
Systems Developer
Information Technology Leeds
_________________________________
Watt Gilchrist Ltd
Ring Road, West Park
Leeds, LS16 6RA
Tel: 0113 288 3200
Fax: 0113 275 1690
http://www.wattgilchrist.co.uk
_________________________________
___________________________________________________________________________
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
___________________________________________________________________________
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