Escape unicode chars in XML files.

This commit is contained in:
Ryszard Wiśniewski 2011-05-03 16:58:10 +02:00
parent 501a92d733
commit 102597ef4c

View File

@ -557,6 +557,11 @@ final public class AndrolibResources {
case '<': case '<':
out.append("&lt;"); out.append("&lt;");
continue; continue;
default:
if (! isPrintableChar(c)) {
out.append(String.format("\\u%04x", (int)c));
continue;
}
} }
out.append(c); out.append(c);
} }