0

I am trying to obtain URL parameters via request.getParameterMap() and I found apostrophe is not getting decoded & is passed as space.

sampleURL : xyz.com/somename?Marke=Sch%C3%B6ffel%7CLevi%27s

Here : Levi%27s is encoded format of Levi's

But when I check parameterMap I get Levi s instead of Levi's

What can be cause of this problem ? How do I resolve it ?

seenukarthi
  • 8,241
  • 10
  • 47
  • 68
user1651561
  • 197
  • 3
  • 3
  • @karthikeyan
    I still have the problem
    URL provided [http://localhost:8080/xyz/ajax/?Marke=Sch%C3%B6ffel%7CLevi%27s]
    Code used to retrieve
    `Map mapParams = (Map) httpRequest.getParameterMap();`
    when I am tried printing the map. I got the below output

    Marke
    Schöffel|Levi s
    – user1651561 Nov 11 '14 at 09:10

1 Answers1

0

I tried it and it is working perfectly without any problem, it prints the value with the apostrophe

Omar.Nassar
  • 379
  • 1
  • 3
  • 14
  • I still have the problem
    URL provided [localhost:8080/xyz/ajax/?Marke=Sch%C3%B6ffel%7CLevi%27s]
    Map mapParams = (Map) httpRequest.getParameterMap();
    when I am tried printing the map. I got the below output

    Marke
    Schöffel|Levi s
    – user1651561 Nov 18 '14 at 06:23
  • can you provide me the method that prints the Map contents – Omar.Nassar Nov 18 '14 at 07:13