From 4394cc4bd4641d62327449e98d93dff8e2026ff7 Mon Sep 17 00:00:00 2001 From: xxjy Date: Mon, 7 Mar 2022 16:16:31 +0800 Subject: [PATCH] fix: set xml file encoding --- .../buildtool/gradle/task/QigsawProcessManifestTask.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/com/iqiyi/qigsaw/buildtool/gradle/task/QigsawProcessManifestTask.groovy b/buildSrc/src/main/groovy/com/iqiyi/qigsaw/buildtool/gradle/task/QigsawProcessManifestTask.groovy index 11199be5..f0c26601 100644 --- a/buildSrc/src/main/groovy/com/iqiyi/qigsaw/buildtool/gradle/task/QigsawProcessManifestTask.groovy +++ b/buildSrc/src/main/groovy/com/iqiyi/qigsaw/buildtool/gradle/task/QigsawProcessManifestTask.groovy @@ -94,7 +94,7 @@ class QigsawProcessManifestTask extends DefaultTask { OutputFormat format = OutputFormat.createPrettyPrint() format.setEncoding("UTF-8") XMLWriter writer = new XMLWriter( - new OutputStreamWriter(new FileOutputStream(xmlFile)), format) + new OutputStreamWriter(new FileOutputStream(xmlFile), "UTF-8"), format) writer.write(document) writer.close() }