Skip to content

Commit

Permalink
lib: aapt: start aapt with utf-8 encoding
Browse files Browse the repository at this point in the history
fixing non-english character

thanks to @imReker
  • Loading branch information
hariimurti committed Sep 19, 2020
1 parent 5d0a611 commit e0a6bf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ApkManager/Lib/Aapt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -66,6 +67,8 @@ public static async Task<string> 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)
Expand Down

1 comment on commit e0a6bf6

@imReker
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fixed now. Thanks for making this great tool.

Please sign in to comment.