Fix UtilTest and replace ampersand in method encode too

This commit is contained in:
lvotypko committed 2012-06-13 13:17:19 +02:00
1 parent fed2d0ff47
commit c667523d44
2 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -678,7 +678,7 @@ public class Util {
for (int i = 0; i < s.length(); i++) {
int c = s.charAt(i);
if (c<128 && c!=' ') {
if (c<128 && (c!=' ' && c!='&')) {
out.append((char) c);
} else {
// 1 char -> UTF8