java provides APIs for doing the encoding and decoding. java.net.URLEncoder java.net.URLDecoder
Regards, Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-1031 -----Original Message----- From: Rakesh Menon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 10:35 PM To: [EMAIL PROTECTED] Subject: Re: JSP Query String URLs use the ASCII character set, and reserve the characters ;, /, ?, :, @, =, and & for special use. The URL specification also declares the space character, the quote mark, <, >, #, %, {, } , |, \, ^, ~, [, ], and ` as unsafe, because of potential conflicts with delimiters, transcribers, and gateways. Any reserved or unsafe character or character not in the ASCII character set must be escaped using a percent sign and its hexadecimal ASCII code. For example, a space is represented as %20. It's best if you can avoid the use of characters that would need to be escaped within your URLs. Biji Harees wrote: > Hi all, > > When I pass a string having spaces as QueryString, the page that recieves > the querystring gets jung characters instead of space . Does anybody come > across with a similar problem. > > regards > Biji Harees > Amsoft India Ltd > Bangalore > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
