Skip to content
Discussion options

You must be logged in to vote

Copy-pasting it from my Discord response

Won't accept, coz it's invalid header
According to standard, only acceptable header is application/json without anything extra
But also it's quite widespread to use application/json; charset=utf-8
charset needs to be defined in most APIs if you want it to be parsed all good
Just slapping utf-8 in the end doesn't follow even any recommendations
According to standard it can be utf-8, utf-16 or utf-32 and it should be detected by analyzing first 4 bytes of incoming data, not based on content type header

Standard itself: https://datatracker.ietf.org/doc/html/rfc4627

I'd send off email to bank to fix it on their side
Meanwhile, I'll see if can figure ou…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@fabiojsantosdev
Comment options

@RomainLanz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by thetutlage
Comment options

You must be logged in to vote
1 reply
@McSneaky
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants