I am attempting to write the character "ÿ" (chr(255)) in a text document using VB.Net 2003. I am using a streamwriter and the following code to get the character from the hex FF.
Chr(Convert.ToInt16("FF", 16))
When looking at this file in notepad the correct character is displayed, however when looking in a hex editor, two bytes have been written which are C3 and BF in hex. When looking at the local variables during runtime the characters look correct it is only when viewed through a hex editor the incorrect characters are displayed.
Has anyone got any ideas?
Ian
Chr(Convert.ToInt16("FF", 16))
When looking at this file in notepad the correct character is displayed, however when looking in a hex editor, two bytes have been written which are C3 and BF in hex. When looking at the local variables during runtime the characters look correct it is only when viewed through a hex editor the incorrect characters are displayed.
Has anyone got any ideas?
Ian