J
Jazper
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).ToString(); //"ô"
byte[] btVal = System.Text.ASCIIEncoding.ASCII.GetBytes(str);
string str2 = System.Text.ASCIIEncoding.ASCII.GetString(btVal);
--- 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).ToString(); //"ô"
byte[] btVal = System.Text.ASCIIEncoding.ASCII.GetBytes(str);
string str2 = System.Text.ASCIIEncoding.ASCII.GetString(btVal);
--- Code -------------------------------
regards, jazper