I am working with string delimiters and one of them is « or 174
. However, when I step through my code it looks like this in the debugger, ®, which is 0174
. See here for Codes.
This is how I'm doing it in code for reference:
string fvDelimiter = ((char)174).ToString();
It is all about character encoding. 174
(AE
in hex) is ® in Unicode, which is used internally in string
by default. But it is «
in Extended ASCII code.
Please refer this difference in article you've provided:
Inserting ASCII characters
To insert an ASCII character, press and hold down ALT while typing the character code. For example, to insert the degree (º) symbol, press and hold down ALT while typing 0176 on the numeric keypad.
Inserting Unicode characters
To insert a Unicode character, type the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With