package main
import (
"fmt"
"go.yaml.in/yaml/v4"
)
func main() {
var str string
err := yaml.Unmarshal([]byte("\"\u0080\""), &str)
if err != nil {
fmt.Println(err)
}
}
This program should exit without printing anything, but it reports the error yaml: control characters are not allowed. To quote the YAML 1.2 specification, “YAML processors must allow all non-C0 characters inside quoted scalars.”