Skip to content

thierry-f-78/go-iconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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