All Projects → henrylee2cn → mahonia

henrylee2cn / mahonia

Licence: other
Copy from http://code.google.com/p/mahonia/

Programming Languages

go
31211 projects - #10 most used programming language

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.

Copy from http://code.google.com/p/mahonia/

install

go get github.com/henrylee2cn/mahonia

example

  package main
  import "fmt"
  import "github.com/henrylee2cn/mahonia"
  func main(){
    enc:=mahonia.NewEncoder("gbk")
    //converts a  string from UTF-8 to gbk encoding.
    fmt.Println(enc.ConvertString("hello,世界"))  
  }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].