dotnet / codeformatter

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
MIT License
1.24k stars 244 forks source link

[Suggestion] Change string literals to use explicit unicode number for special characters #24

Closed krwq closed 9 years ago

krwq commented 9 years ago

Replace special characters in string literals: i.e.: "asdadsśćę" with "asdads\u015B\u0107\u0119"

ellismg commented 9 years ago

There is already code to do this:

https://github.com/dotnet/codeformatter/blob/master/src/Microsoft.DotNet.CodeFormatting/Rules/NonAsciiCharactersAreEscapedInLiteralsRule.cs

Is it not working?

krwq commented 9 years ago

I actually did not check although the last time I run the tool it did not do this :) Closing the issue in this case