I have the following output from a REST request:
b'{
"recipient": {
"address": "v\xc3\xa4g 4",
},
}'
The \xc3\xa4
comes from the character ä
. I'm looking for a simple way to normalize the entire content above so that \xc3\xa4
is replaced by something meaningful (e.g. a
).
My script processes addresses in many different languages so I'm looking for something that provides a meaningful replacement across many different special characters.