hi
can anybody explain that to me:
i did the following:
- 1. input of char 244 ("ô") into string
- 2. convert to getbytes
- 3. convert back to string
char 244 changed to char 63 ("?")
why??? what can i do the get the same string...?
--- Code -------------------------------
string str = ((char)244).ToS tring(); //"ô"
byte[] btVal = System.Text.ASC IIEncoding.ASCI I.GetBytes(str) ;
string str2 = System.Text.ASC IIEncoding.ASCI I.GetString(btV al);
--- Code -------------------------------
regards, jazper
can anybody explain that to me:
i did the following:
- 1. input of char 244 ("ô") into string
- 2. convert to getbytes
- 3. convert back to string
char 244 changed to char 63 ("?")
why??? what can i do the get the same string...?
--- Code -------------------------------
string str = ((char)244).ToS tring(); //"ô"
byte[] btVal = System.Text.ASC IIEncoding.ASCI I.GetBytes(str) ;
string str2 = System.Text.ASC IIEncoding.ASCI I.GetString(btV al);
--- Code -------------------------------
regards, jazper
Comment