• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

wrong URL encoding?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

while my interceptor (Struts2) repeats his call, the URL in the repeated html-file for the next call is changing like this:

...nnsh%C3%B6ft+%28Strom... (this ist the correct call-fragment in the first html-wait-page)
...nnsh%C3%83%C2%B6ft+%28Strom... (second page)
...nnsh%C3%83%C2%83%C3%82%C2%B6ft+%28Strom... (third page)
...nnsh%C3%83%C2%83%C3%82%C2%83%C3%83%C2%82%C3%82%C2%B6ft+%28Strom... (and so on...)

Seems that the "%"-Chars after the first one of the Code %C3%B6 (wich represents "รถ") is replaced by "%83%C2" (which represents the "%"-Char) and so on. Codes with only one "%" lile %28 for the "(" are handled correct. What is the problem? Is there a problem with Tomcat (7) or with Struts?

Thank You for an answer!

Struppi
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch.
It looks like you keep re-encoding the same string over and over. What does your code look like?
reply
    Bookmark Topic Watch Topic
  • New Topic