Test: new changes in pkg request, serializer, task, xml, router

This commit is contained in:
HFO4
2022-03-31 20:17:01 +08:00
parent d117080991
commit ec776ac837
9 changed files with 26 additions and 285 deletions

View File

@@ -1040,7 +1040,7 @@ Input:
d.buf.WriteByte(';')
n, err := strconv.ParseUint(s, base, 64)
if err == nil && n <= unicode.MaxRune {
text = string(n)
text = string(rune(n))
haveText = true
}
}
@@ -1063,7 +1063,7 @@ Input:
if isName(name) {
s := string(name)
if r, ok := entity[s]; ok {
text = string(r)
text = string(rune(r))
haveText = true
} else if d.Entity != nil {
text, haveText = d.Entity[s]