# mahonia **Repository Path**: tym_hmm/mahonia ## Basic Information - **Project Name**: mahonia - **Description**: 字符串编码转换 gbk转utf-8 - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-16 - **Last Updated**: 2024-05-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README go 符串编码转换 ======= install ------- go get gitee.com/tym_hmm/mahonia example ------- package main import "fmt" import "gitee.com/tym_hmm/mahonia" func main(){ enc:=mahonia.NewEncoder("gbk") //converts a string from UTF-8 to gbk encoding. fmt.Println(enc.ConvertString("hello,世界")) } donate -------