https://github.com/axgle/mahonia
character-set conversion library implemented in Go
https://github.com/axgle/mahonia
Last synced: about 2 months ago
JSON representation
character-set conversion library implemented in Go
- Host: GitHub
- URL: https://github.com/axgle/mahonia
- Owner: axgle
- License: other
- Created: 2012-05-22T01:11:12.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2018-02-08T00:28:26.000Z (over 7 years ago)
- Last Synced: 2025-04-07T04:13:56.093Z (2 months ago)
- Language: Go
- Size: 435 KB
- Stars: 835
- Watchers: 27
- Forks: 163
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- go-awesome - mahonia - Character set encoding conversion (Open source library / Word Processing)
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