From e0a6bf675b687d257ce5f65df35c2058fafe2aac Mon Sep 17 00:00:00 2001 From: Harimurti Date: Sat, 19 Sep 2020 22:10:03 +0700 Subject: [PATCH] lib: aapt: start aapt with utf-8 encoding fixing non-english character thanks to @imReker --- ApkManager/Lib/Aapt.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ApkManager/Lib/Aapt.cs b/ApkManager/Lib/Aapt.cs index 971f7e5..6b7f4a5 100644 --- a/ApkManager/Lib/Aapt.cs +++ b/ApkManager/Lib/Aapt.cs @@ -3,6 +3,7 @@ using System.IO; using System.IO.Compression; using System.Linq; +using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Media.Imaging; @@ -66,6 +67,8 @@ public static async Task RunAsync(string command, params object[] args) CreateNoWindow = true, RedirectStandardOutput = true, RedirectStandardError = true, + StandardOutputEncoding = Encoding.UTF8, + StandardErrorEncoding = Encoding.UTF8, WindowStyle = ProcessWindowStyle.Hidden, FileName = Path.Combine("Lib", "aapt.exe"), Arguments = string.Format(command, args)