there are two ways to slove this problem.
first is that after you read the bytes,then you convert it to unicode :
string temp_string = sr.ReadLine();
// Create two different encodings.
Encoding ascii = Encoding.ASCII;
Encoding unicode = Encoding.Unicode;
// Convert the string into a byte.
byte assciiBytes = unicode.GetBytes(temp_string );
// Perform the conversion from one encoding to the other.
byte unicodeBytes = Encoding.Convert(unicode, ascii, assciiBytes );
the second is that initalize the StreamReader with unicode:
using(System.IO.StreamReader sr = new System.IO.StreamReader(temp_path, Encoding.Unicode))
I am developing c# application using Visual Studio 2005. I want that when the user executes my application then:
1- The window should create a new Virtual desktop using MSVD.
2- My application should run in the new desktop. Only my application should be allowed to run.
3- I should have the options to modify the start menu in the new virtual desktop
4- When user close application the virtual desktop should shutdown