Forum Discussion

whaleyl's avatar
whaleyl
New Contributor III
2 years ago
Solved

HTTP Client snap issue encoding diacritical marks/accents

Hello all! Hoping for some helpful suggestions or insight regarding an issue we're facing with the new HTTP Client snap. We're sending a POST request with a JSON body. Within the body are street add...
  • whaleyl's avatar
    2 years ago

    UPDATE: I seem to have already fixed my own issue, hopefully this helps someone however if they make the same mistake I did.

    My Content-Type header in my request wasn't specifying UTF-8 for encoding purposes, so I updated it to do so:

    I assume the REST POST snap might have been defaulting to UTF-8 which is why it worked for me even though I was only supplying "application/json" without the charset, and in comparison the HTTP Client snap does not (?) I'm unclear. In any case, easy solution.