You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My possibly incorrect analysis: This isn't a bug, The unicode replacement character is a valid UTF-8 character. Strings and []byte preserve invalid UTF-8 sequences, because they are byte-based, when you convert to []rune, that's when the replacement happens. After the replacement happens, the UTF-8 is valid, because it has been replaced with the replacement character.
What did you do?
https://play.golang.org/p/yvUrxynoku
What did you expect to see?
false
What did you see instead?
true
System details
The text was updated successfully, but these errors were encountered: