Why RuneCountInString return invalid length

t := β€œ:u6709:”
fmt.Println(utf8.RuneCountInString(t)) // 2

Hi @javacode123,

Welcome to the forum.

In the Go Playground, the result is 1.

Did you post the original code that returns 2 on your end?
What Go version do you use?
Can you replicate the wrong result on more than one operating system?