Changed code to use new rune type unicode code points.

This commit is contained in:
jim teeuwen 2011-10-26 12:24:45 +02:00
parent 4f7417ecbc
commit 0ecfd7fd99
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ func EntityToUtf8(entity string) string {
}
var arr [4]byte
if size := utf8.EncodeRune(arr[:], num); size == 0 {
if size := utf8.EncodeRune(arr[:], rune(num)); size == 0 {
return "&#" + entity + ";"
}