Go Strings


Unicode

The bytes of a Golang string may or may not be valid Unicode characters. There are only a few instances where strings are implicitly encoded:

In these cases, all invalid Unicode bytes are converted to U+FFFD (replacement character). Go will not crash when writing, printing, etc., an invalid Unicode byte.


CategoryRicottone