Closed bswinnerton closed 5 years ago
As of Go 1.13, it looks like there is now a strings.ToValidUTF8 function that should be able to strip out invalid UTF8 characters. There are probably better solutions, but this seems Good Enough™ for now.
strings.ToValidUTF8
Fixes #1.
As of Go 1.13, it looks like there is now a
strings.ToValidUTF8
function that should be able to strip out invalid UTF8 characters. There are probably better solutions, but this seems Good Enough™ for now.Fixes #1.