| 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 before Go 1.27, |
| 6 |
// and with GOEXPERIMENT=nojsonv2, writes the replacement character U+FFFD escaped. |
| 7 |
const invalidUTF8 = `\ufffd` |