codeformatter icon indicating copy to clipboard operation
codeformatter copied to clipboard

NonAsciiCharactersAreEscapedInLiterals issue with Verbatim Stings

Open ellismg opened this issue 10 years ago • 0 comments

The current rule will convert @"This is a snowman: ☃." to: @"This is a snowman: \u2603.". This is wrong because we want the unicode literal in the string, not the escaped version. Instead it should convert it to something like:

@"This is a snowman: " + "\u2603" + @"."

Note that to be nice we should probably compress runs of Unicode characters together if they appear one after another.

ellismg avatar Jan 23 '15 23:01 ellismg