Last active
August 3, 2016 21:13
-
-
Save guiscaranse/64c641e87b10bf4611a6de7cbf6584be to your computer and use it in GitHub Desktop.
Encode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Encoding iso = Encoding.GetEncoding("ISO-8859-1"); | |
Encoding utf8 = Encoding.UTF8; | |
byte[] utfBytes = utf8.GetBytes(Message); | |
byte[] isoBytes = Encoding.Convert(utf8, iso, utfBytes); | |
string msg = iso.GetString(isoBytes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment