Skip to content

Commit 251eafe

Browse files
Dump UI as UTF-16 for emojis
1 parent f9bc7ff commit 251eafe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/src/main/java/com/termux/api/apis/AccessibilityAPI.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ private static String dump() throws TransformerException, ParserConfigurationExc
116116
Transformer transformer = transformerFactory.newTransformer();
117117
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
118118
transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
119+
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-16");
119120
DOMSource source = new DOMSource(document);
120121

121122
StringWriter sw = new StringWriter();

0 commit comments

Comments
 (0)