Skip to content

Commit

Permalink
fix: #100 #142 #115 unicode characters show problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Leizhenpeng committed Mar 28, 2023
1 parent 5807d5d commit 2cf6d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/handlers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
}

Expand Down

0 comments on commit 2cf6d2a

Please sign in to comment.