• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

json deserialization issue with special characters

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All,

I am facing an issue with json serialization , please let me know if you have come across this.

Actual SOA requests contains below element in the request:

<lastName>,.?/ AAC??¼ÆÐæ</lastName>

when it reaches the Controller layer it becomes like this:

"lastName":",.?/ AAC??üÃÂÃÂæ" //some non-printable and ascii characters are getting appended.

Tech Stack -> Spring REST , Jackson

Regards,
Vijay
 
Sheriff
Posts: 9697
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From what I've read online, Jackson takes care of character encoding for you. So this shouldn't be an issue. How did you notice the issue, was it in the logs or something? Maybe the logger is messing up the characters or something like that. Also not sure but maybe it's a browser issue?
 
reply
    Bookmark Topic Watch Topic
  • New Topic