Answers for "Encoding.GetEncoding("ISO-8859-1")"

0

Encoding.GetEncoding("ISO-8859-1")

string isocontent = Encoding.GetEncoding("ISO-8859-1").GetString(fileContent, 0, fileContent.Length);
byte[] isobytes = Encoding.GetEncoding("ISO-8859-1").GetBytes(isocontent);
byte[] ubytes = Encoding.Convert(Encoding.GetEncoding("ISO-8859-1"), Encoding.Unicode, isobytes);
return Encoding.Unicode.GetString(ubytes, 0, ubytes.Length);
Posted by: Guest on March-27-2021
0

Encoding.GetEncoding("ISO-8859-1")

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);
Posted by: Guest on March-27-2021

Code answers related to "Encoding.GetEncoding("ISO-8859-1")"

Browse Popular Code Answers by Language