---
title: "Comment by Sébastien Portebois on \"Something about Go strings that you should know\" | Hashnode"
description: "That’s why Go introduce the concept of rune , which is dedicated to deal with Unicode characters s := \"abcdè\" runes := [] rune (s) fmt.Printf( \"%d \\n\" , len (s)"
url: "https://hashnode.com/posts/something-about-go-strings-that-you-should-know/5cfe56d445fbc614406d1095/comment/5cfe8d901f82fa3d16d7d920"
---

[Discussion](https://hashnode.com/posts/something-about-go-strings-that-you-should-know/5cfe56d445fbc614406d1095)

Comment [Something about Go strings that you should know](https://hashnode.com/posts/something-about-go-strings-that-you-should-know/5cfe56d445fbc614406d1095)

[Sébastien Portebois](https://hashnode.com/@sportebois)

[Jun 10, 2019](https://hashnode.com/posts/something-about-go-strings-that-you-should-know/5cfe56d445fbc614406d1095/comment/5cfe8d901f82fa3d16d7d920)

That’s why Go introduce the concept of `rune`, which is dedicated to deal with Unicode characters

```
s := "abcdè"
runes := []rune(s)
fmt.Printf("%d \n", len(s))
fmt.Printf("%d \n", len(runes))
```

Will print

```
6
5
```

playground: [play.golang.com/p/9LipbYhD3j9](https://play.golang.com/p/9LipbYhD3j9)

[Aravind](https://hashnode.com/@scriptonist)

[Jun 10, 2019](https://hashnode.com/posts/something-about-go-strings-that-you-should-know/5cfe56d445fbc614406d1095/comment/5cfe8d901f82fa3d16d7d920#reply-5cfe8dca90c6ae176ecfbfb3)

Yes exactly ☺️

[Mark](https://hashnode.com/@mverleg)

[Jun 10, 2019](https://hashnode.com/posts/something-about-go-strings-that-you-should-know/5cfe56d445fbc614406d1095/comment/5cfe8d901f82fa3d16d7d920#reply-5cfec9727cf61eae5ee272b6)

Definitely closer, but e.g. flags like 🇺🇸 show 2 runes and 👨‍👨‍👧‍👧 is 7, which is probably not what you want. This thing नी is 2, and I̪͉̜̼̼̣̟̣ ̰̟̥̞̹c͈͔͇̼a̙̹̼̦̲̞n̙̺̳̟ͅ ̤̗d̘̭̙̪̦o̬̲̜̺ ̲̬̝t̺̖̗̩̱h̟̟̱i̹s̹̱ for over 60.

It's much better than bytes though, and worked for the Chinese phrases I threw at it!
