"Wrong" encoding in webservice when asking for json

SunsetSunset Member Posts: 201
For a webservice in NAV2018 I have regular listpage showing all the customers that has been exposed as a webservice.
When getting the data in an xml file everything looks as it should, but if when asking for the data in JSON all of the special characters æøå seem to use unicode. ie København transform into K\u00f8benhavn
Is there anyway to avoid this transformation?
Don't just take my word for it, test it yourself

Answers

  • irasoelbaksirasoelbaks Member Posts: 119
    Please try to send this header in your request. Maybe it will solve the problem?

    Content-type: application/json; charset=utf-8
Sign In or Register to comment.