Skip to content

Commit

Permalink
Fix garbled characters on process output (fix #3181)
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Jan 17, 2025
1 parent a3c0f0b commit e905699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/UniGetUI.PackageEngine.Operations/ProcessOperation.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics;
using System.Text;
using UniGetUI.PackageEngine.Enums;

namespace UniGetUI.PackageOperations;
Expand Down Expand Up @@ -31,6 +32,9 @@ protected AbstractProcessOperation(bool queue_enabled) : base(queue_enabled)
process.StartInfo.RedirectStandardInput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.StandardOutputEncoding = Encoding.UTF8;
process.StartInfo.StandardErrorEncoding = Encoding.UTF8;
process.StartInfo.StandardInputEncoding = Encoding.UTF8;
process.StartInfo.FileName = "lol";
process.StartInfo.Arguments = "lol";
process.OutputDataReceived += (_, e) =>
Expand Down

0 comments on commit e905699

Please sign in to comment.