Skip to content

Commit 0e60e81

Browse files
committed
[Fix] Fixed non-English DISM output not showing special characters
1 parent a01d538 commit 0e60e81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UserControls/ConsoleControl.vb

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Public Class ConsoleControl
2424

2525
Public Function StartProcess(executablePath As String, arguments As String) As Integer
2626
proc = New Process()
27+
proc.StartInfo.StandardOutputEncoding = System.Text.Encoding.GetEncoding(Globalization.CultureInfo.CurrentCulture.TextInfo.OEMCodePage)
28+
proc.StartInfo.StandardErrorEncoding = System.Text.Encoding.GetEncoding(Globalization.CultureInfo.CurrentCulture.TextInfo.OEMCodePage)
2729
proc.StartInfo.FileName = executablePath
2830
proc.StartInfo.Arguments = arguments
2931
proc.StartInfo.CreateNoWindow = True

0 commit comments

Comments
 (0)