I have a string from which I create an Uri. But I want to convert this string to iso-8859-1 format.
How do I convert the string?
---------------------------------------------
Yes, the world is full of strange people.
How do I convert the string?
Code:
Encoding iso = Encoding.GetEncoding("iso-8859-1");
byte[] uri_byte = iso.GetBytes(uri_string);
---------------------------------------------
Yes, the world is full of strange people.