Skip to content

Instantly share code, notes, and snippets.

@garuma
Created December 21, 2012 12:18
Show Gist options
  • Save garuma/4352468 to your computer and use it in GitHub Desktop.
Save garuma/4352468 to your computer and use it in GitHub Desktop.
diff --git a/MonkeyWrench.Database/SchedulerGIT.cs b/MonkeyWrench.Database/SchedulerGIT.cs
index 7ea1b94..d6df370 100755
--- a/MonkeyWrench.Database/SchedulerGIT.cs
+++ b/MonkeyWrench.Database/SchedulerGIT.cs
@@ -338,6 +338,8 @@ namespace MonkeyWrench.Scheduler
git.StartInfo.UseShellExecute = false;
git.StartInfo.RedirectStandardOutput = true;
git.StartInfo.RedirectStandardError = true;
+ git.StartInfo.StandardOutputEncoding = System.Text.Encoding.UTF8;
+ git.StartInfo.StandardErrorEncoding = System.Text.Encoding.UTF8;
Log ("Executing: '{0} {1}' in {2}", git.StartInfo.FileName, git.StartInfo.Arguments, cache_dir);
git.OutputDataReceived += delegate (object sender, DataReceivedEventArgs e)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment