parsing queryString from Browser: time variable

Hi,
I am trying to parse the queryString("email=foota@hotmail.com&timestamp=20061005152900") from browser
after i do "String queryString = request.getQueryString()" in my servlet, i am getting:

"email=foota@hotmail.com×tamp=20061005152900" , basically 'times' is being relpaced by 'x'

How can fix this so that after my queryString is still exactly the same.

komlaaaAsked:
Who is Participating?
 
hoomanvCommented:
try

query = query.replace("&", "&");

before showing within html
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
great &times stands for multiplication in HTML so only its getting replaced by X check out

http://www.w3schools.com/html/html_entities.asp

just try masking it with in some escape tags.
0
 
hoomanvCommented:
Im wondering why &times is being converted to X, AFAIK × (with semicolon) is the correct notation
however you can url encode it
query = java.net.URLEncoder.encode(query, "UTF-8");
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
>>Im wondering why &times is being converted to X

check out the link i have given.
0
 
hoomanvCommented:
> check out the link i have given.
I know Html Entities but my wonder is why &times without the semicolon ; is being converted
0
 
hoomanvCommented:
if it was ×tamp
convertion would be correct
but its &timestamp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.