tags:

views:

92

answers:

2

I have WCF REST service which retrieves tags from database. Some tags have special chars like &, +, #, (, ) in them. I am able to retrieve tags with #, (, and ) by url encoding the query string.

But I am not able to retrieve tags with '&' and '+' by url encoding the query string.

I would like to know the solution for this.

Thanks

+1  A: 

Convert

+ => %2b
& => %26
, => %2c

UPDATE:

But for "#" its impossible, because, anything after # character is not send to server side, you could only do that in client side with javascript

S.Mark
I am doing the same thing but it does not work.
Satyaprakash J
btw, for "," => %2c, but # is impossible, because, anything after # character is not send to server side script, you could only do that in client side with javascript.
S.Mark
A: 

a+b is written as a%2Bb

a&b is written as a%26b

Ravia
I am doing the same thing but it does not work.
Satyaprakash J