這一招用在Socket資料傳遞上面
byte[] b = System.Text.Encoding.Unicode.GetBytes("test test \t a");
string s = System.Text.Encoding.Unicode.GetString(b);
s的結果會是"test test \t a"
全站熱搜
這一招用在Socket資料傳遞上面
byte[] b = System.Text.Encoding.Unicode.GetBytes("test test \t a");
string s = System.Text.Encoding.Unicode.GetString(b);
s的結果會是"test test \t a"