Joined February 2015
·

Egon Elbre

Tartu
·
·

Posted to Dealing with Unicode in Go over 1 year ago

Also the code is still wrong. Characters can span multiple runes (code points), basically there are also composed characters (http://en.wikipedia.org/wiki/Unicode#Ready-made_versus_composite_characters).
(also see http://blog.golang.org/normalization, http://blog.golang.org/strings)

And a nice quote by Rob Pike -
"In fact, the definition of "character" is ambiguous and it would be a mistake to try to resolve the ambiguity by defining that strings are made of characters."

Achievements
1 Karma
0 Total ProTip Views