I have lines of code with unicode characters that are not visible in the IDE.
Take for example the following.
string s3;
s3 = Devex(" "); //Devex is just a function that returns a string
Console.WriteLine(s3);
MessageBox.Show(" ")); //you have been denied!
appears like this in the IDE:
string s3;
Console.WriteLine(s3);
The code is correct if you open it in Notepad. It executes properly. You can't cursor forward on the line but you can cursor backwards.
I am using VS2005 on a Vista box. I didn't have this problem on an XP box. I've checked all the setting under Tools/Options between the two boxes and they all match. This is not specific to C#. The same thing happens if I try this in VB.
What is causing this, and how can I fix it

Disappearing code
patio87
It might be a simple font problem. Some fonts don't support unicode. Try 'Tools', 'options', 'font and colors' to see what font the editor uses. I know that 'Arial' and 'Courier new' support unicode, while 'tahoma' doesn't, at least on my xp comp.
Another solution could be that you have different international settings on the two comp (Control Panel). If the settings on the xp computer is say japanese, then it will save files using a japanese encoding by default (because japanese characters will be part of the 'CURRENT' codepage, no need for unicode). Now when read on a say english comp. these characters does not belong to the current codepage and since the file was not saved in unicode, they can't be loaded correct.
Hope this helps.
ZopoStyle
erikkl2000
Dual Cortex
Dr.Virusi