Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

c# trying to convert url

Status
Not open for further replies.

sjakiePP

Programmer
Apr 6, 2004
104
NL
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?

Code:
Encoding iso = Encoding.GetEncoding("iso-8859-1");
byte[] uri_byte = iso.GetBytes(uri_string);

---------------------------------------------
Yes, the world is full of strange people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top