From 2cf6d2a5598be257c7ffa94d9e386a88a6936b4b Mon Sep 17 00:00:00 2001 From: river Date: Tue, 28 Mar 2023 19:22:49 +0800 Subject: [PATCH] fix: #100 #142 #115 unicode characters show problem --- code/handlers/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/handlers/common.go b/code/handlers/common.go index 0a594740..6bfac0cf 100644 --- a/code/handlers/common.go +++ b/code/handlers/common.go @@ -60,7 +60,7 @@ func processUnicode(msg string) string { r, _ := regexp.Compile(`\\u`) s = r.ReplaceAllString(s, "") i, _ := strconv.ParseInt(s, 16, 32) - return strconv.Itoa(int(i)) + return string(rune(i)) }) }