Using System.Text.Encoding
|
1 2 3 4 |
string text = "Hello World"; byte[] bytes = Encoding.UTF8.GetBytes(text); string restoredText = new string(Encoding.UTF8.GetChars(bytes)); Debug.Print(restoredText); |
Using System.Text.Encoding
|
1 2 3 4 |
string text = "Hello World"; byte[] bytes = Encoding.UTF8.GetBytes(text); string restoredText = new string(Encoding.UTF8.GetChars(bytes)); Debug.Print(restoredText); |