mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 13:57:46 +01:00
Escape unicode chars in XML files.
This commit is contained in:
parent
501a92d733
commit
102597ef4c
@ -557,6 +557,11 @@ final public class AndrolibResources {
|
|||||||
case '<':
|
case '<':
|
||||||
out.append("<");
|
out.append("<");
|
||||||
continue;
|
continue;
|
||||||
|
default:
|
||||||
|
if (! isPrintableChar(c)) {
|
||||||
|
out.append(String.format("\\u%04x", (int)c));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
out.append(c);
|
out.append(c);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user