forked from lxh/go-wxhelper
16 lines
265 B
Go
16 lines
265 B
Go
|
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
|
||
|
}
|