Answers for "golang encoding utf8 to ascii"

0

golang encoding utf8 to ascii

import "encoding/ascii85"
dst := make([]byte, 25, 25)
dst2 := make([]byte, 25, 25)
ascii85.Encode(dst, []byte("Hello, playground"))
fmt.Println(dst) 
ascii85.Decode(dst2, dst, false)
fmt.Println(string(dst2))
Posted by: Guest on May-22-2021

Browse Popular Code Answers by Language