/go-iconv

Libc iconv for go

Primary LanguageGoGNU Lesser General Public License v3.0LGPL-3.0

go-iconv

GoDoc

This library convert text from charset to another one using standard libc iconv. It contains only one function. There's an example:

// convert ISO8859-1 to UTF-8, without transliteration
out, err = Iconv("utf-8", "iso8859-1", "hello, \xe9\xe9, hello \xe9\xe9", false)
if err != nil {
	println("error:", err.Error())
} else {
	println(out)
}

For more information about iconv:

man 3 iconv