Skip to content

Commit

Permalink
Set output encoding to UTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
prafullbhosale committed Oct 9, 2017
1 parent de04fcf commit 2f75492
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Shared/General/ConsoleLogger.cs
@@ -1,7 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System;
using System.Text;

namespace Microsoft.VisualStudio.Web.CodeGeneration
{
Expand All @@ -12,6 +13,11 @@ public class ConsoleLogger : ILogger

public bool IsTracing => isTrace;

public ConsoleLogger()
{
Console.OutputEncoding = Encoding.UTF8;
}

public void LogMessage(string message)
{
LogMessage(message, LogMessageLevel.Information);
Expand Down

0 comments on commit 2f75492

Please sign in to comment.