Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set output encoding to UTF8 #640

Merged
merged 1 commit into from Oct 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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