Debian Codegraph @

internal/encoder/invalid_utf8.go

raw
1 //go:build go1.27 && goexperiment.jsonv2
2
3 package encoder
4
5 // invalidUTF8 is what a byte of a string which is not valid UTF-8 is replaced by: encoding/json of Go 1.27,
6 // which is made of encoding/json/v2, writes the replacement character U+FFFD as it is, without an escape.
7 const invalidUTF8 = "\ufffd"