1
0
forked from lxh/go-wxhelper
go-wxhelper/utils/string.go

16 lines
265 B
Go
Raw Permalink Normal View History

package utils
import (
"strconv"
"strings"
)
// unicodeToText
// @description: unicode转文本
// @param str
// @return dst
func unicodeToText(str string) (dst string) {
dst, _ = strconv.Unquote(strings.Replace(strconv.Quote(str), `\\u`, `\u`, -1))
return
}