views:

65

answers:

2

I've got a file, on which I'm doing some Regex. The file uses ASCII character 218, which is visible in notepad. When I copy the character into my VS2010, it doesn't appear! But it will still cause a compile error if I paste it in the wrong place, and when I run the program, it still appears in the search string when I mouse over it. The regex works correctly.

The problem is of course that you can't see it in the code! How do I fix this, and what is causing it?

+2  A: 

In the Regex you can use the hex representation of the character in stead: \xDA

asgerhallas
+2  A: 

The font that is used to display the code doesn't have a glyph for the character code 218.

To enter characters outside the general visible set of characters, use an escape code to enter it as a character code:

char strangeChar = '\u00da';

(The decimal numer 218 is the hexadecimal number 0xDA.)

Guffa