Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* https://stackoverflow.com/questions/1922199/c-sharp-convert-string-from-utf-8-to-iso-8859-1-latin1-h */
- 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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement