Registry / utility / djimenez-iconv-go

djimenez-iconv-go

JSON →
library0.0.0-20160305225143-8960e66bd3dagogounverified

Wraps the iconv API present on most systems, which allows for conversion of bytes from one encoding to another.

go get github.com/djimenez/iconv-go
INSTALL
IMPORT
SIG · DJIMENEZ-ICONV-GO
D
djimenez-iconv-go
utilitygov0.0.0-20160305225143-8960e66bd3da
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

iconv
✓ github.com/djimenez/iconv-go

Converts a UTF-8 string to ISO-8859-1 encoding.

package main import ( "fmt" "github.com/djimenez/iconv-go" ) func main() { output := make([]byte, 100) input := []byte("hello") iconv.Convert(input, output, "utf-8", "iso-8859-1") fmt.Println(string(output)) }
Debug
Known issues
gotchaThis package requires the system iconv library (libiconv) to be installed.
fix
Install libiconv-dev or equivalent on your system.
affects: *
Upgrade
Version history
0.0.0-20160305225143-8960e66bd3dalatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
djimenez-iconv-go — go get djimenez-iconv-go · libregistry