I have a word which contains some of these characters - šđžčć. When I take the first letter out of that word, I'll have a byte
, when I convert that byte
into string I'll get incorrectly decoded string.
Can someone help me figure out how to decode properly the extracter letter.
This is example code:
package main
import (
"fmt"
)
func main() {
word := "ŠKOLA"
c := word[0]
fmt.Println(word, string(c)) // ŠKOLA Å
}