# mahonia **Repository Path**: mayiweb/mahonia ## Basic Information - **Project Name**: mahonia - **Description**: https://github.com/axgle/mahonia - **Primary Language**: Go - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-16 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README mahonia ======= character-set conversion library implemented in Go. Mahonia is a character-set conversion library implemented in Go. All data is compiled into the executable; it doesn't need any external data files. based on http://code.google.com/p/mahonia/ install ------- go get github.com/axgle/mahonia example ------- package main import "fmt" import "github.com/axgle/mahonia" func main(){ enc:=mahonia.NewEncoder("gbk") //converts a string from UTF-8 to gbk encoding. fmt.Println(enc.ConvertString("hello,世界")) } donate ------- https://github.com/axgle/mahonia/wiki/Donate