Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 538 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 538 Bytes

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