Unverified Commit 67d9241a authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #3171 from whomm/master

debug stringsToJSON
parents 110dbcb3 e96ae0c2
......@@ -350,6 +350,11 @@ func stringsToJSON(str string) string {
jsons.WriteRune(r)
} else {
jsons.WriteString("\\u")
if rint < 0x100 {
jsons.WriteString("00")
} else if rint < 0x1000 {
jsons.WriteString("0")
}
jsons.WriteString(strconv.FormatInt(int64(rint), 16))
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment