Announcement Announcement Module
Collapse
No announcement yet.
RestTemplate and URI encoding charset Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RestTemplate and URI encoding charset

    Hi,
    does anybody know of an easy way to encode the URI of a GET request using RestTemplate in another character encoding than utf-8?

    What I did is subclassing RestTemplate, overriding execute method and using a subclass of UriTemplate that calls UriComponents.encode(iso-8859-1) instead of UriComponents.encode().

    Actually, this approach works but I was wondering if there is a more elegant/easier way?

    btw, I'm using Spring 3.1.1

    Thanks in advance,
    Axel
Working...
X