From 0ecfd7fd9986dc8ad9690d9ef1127645892977ab Mon Sep 17 00:00:00 2001 From: jim teeuwen Date: Wed, 26 Oct 2011 12:24:45 +0200 Subject: [PATCH] Changed code to use new rune type unicode code points. --- entitymap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entitymap.go b/entitymap.go index c70b9ea..d17faec 100644 --- a/entitymap.go +++ b/entitymap.go @@ -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 + ";" }