// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Text; namespace E { public class MainClass { public static void Main(string[] args) { for(int i = 160; i < 255; i++) { char c = (char)i; string s = c.ToString(); byte[] utf8 = Encoding.UTF8.GetBytes(s); byte[] iso88591 = Encoding.Default.GetBytes(s); Console.WriteLine(utf8[0] + " " + utf8[1] + " -> " + iso88591[0]); Console.WriteLine(utf8[0].ToString("X") + " " + utf8[1].ToString("X") + " -> " + iso88591[0].ToString("X")); } } } }