encoding/json: misleading error parsing invalid json with multibyte characters #57405
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?Linux, amd64.
What did you do?
Here is a playground link.
What did you expect to see?
I'd expect the error message to identify the grapheme.
What did you see instead?
The error message prints out
â
. This corresponds to the first byte of the multibyte sequence that composes the grapheme“
.Specifically
which commonly corresponds to â.
I'm sure this is all well-known, but I didn't see a crisp example of this in the issue log. I may have missed it. If so, I'm sorry.
The text was updated successfully, but these errors were encountered: