Skip to content

Instantly share code, notes, and snippets.

@bradleypeabody
bradleypeabody / gist:185b1d7ed6c0c2ab6cec
Last active April 18, 2023 07:03
golang, convert UTF-16 to UTF-8 string
View gist:185b1d7ed6c0c2ab6cec
package main
// http://play.golang.org/p/fVf7duRtdH
import "fmt"
import "unicode/utf16"
import "unicode/utf8"
import "bytes"
func main() {