Skip to content

Commit

Permalink
Merge pull request #344 from OmniSharp/unicode
Browse files Browse the repository at this point in the history
Use UT8 Encoding without BOM
  • Loading branch information
david-driscoll committed Nov 24, 2015
2 parents 54eeb15 + 971a14f commit 96574a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/OmniSharp/Middleware/EndpointMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,8 @@ public async Task Invoke(HttpContext httpContext)

await _next(httpContext);
}

#if DNXCORE50
private static readonly Encoding _encoding = System.Text.Encoding.GetEncoding(1252);
#else
private static readonly Encoding _encoding = System.Text.Encoding.Default;
#endif

private static readonly Encoding _encoding = new System.Text.UTF8Encoding(false);

private void SerializeResponseObject(HttpResponse response, object value)
{
Expand Down
4 changes: 3 additions & 1 deletion src/OmniSharp/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
}
},
"dnxcore50": {
"dependencies": {}
"dependencies": {
"System.Text.Encoding.Extensions": "4.0.10-beta-22816"
}
}
}
}

0 comments on commit 96574a4

Please sign in to comment.