Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Please answer these questions before submitting your issue. Thanks!
Byte values which are not valid ISO-8859-1 characters should map to the Unicode replacement character (0xfffd) when decoding.
Byte values which are not valid characters map to the Unicode code point with the same value as the original byte.
The text was updated successfully, but these errors were encountered:
The documentation for x/text/encoding#Decoder says: "Each byte that cannot be transcoded will be represented in the output by the UTF-8 encoding of '\uFFFD', the replacement rune."
It seems like either charmap.ISO8859_1.NewDecoder() has a bug or the documentation for x/text/encoding is wrong.
Sorry, something went wrong.
No branches or pull requests