0
Q:

golang byte to string

b := []byte("ABC€")
s := string([]byte{65, 66, 67, 226, 130, 172})
3
str:=string(data)
fmt.Print(str)
1
s := string([]byte{65, 66, 67, 226, 130, 172})
fmt.Println(s) // ABC€
1

New to Communities?

Join the community