diff options
Diffstat (limited to 'simpletext.go')
-rw-r--r-- | simpletext.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/simpletext.go b/simpletext.go index 78e089e..4d86d6d 100644 --- a/simpletext.go +++ b/simpletext.go @@ -159,13 +159,13 @@ func Unescape(s string) string { return "\\" case 'x': n, _ := strconv.ParseUint(match[2:], 16, 8) - return string(n) + return string(rune(n)) case 'u': n, _ := strconv.ParseUint(match[2:], 16, 16) - return string(n) + return string(rune(n)) case 'U': n, _ := strconv.ParseUint(match[2:], 16, 32) - return string(n) + return string(rune(n)) } return match // this shouldn't happen }) |