public static void Main()
Console.WriteLine(PrintBytes("hello"));
Console.WriteLine(PrintBytes("Hello"));
Console.WriteLine(PrintBytes("IIIII"));
Console.WriteLine(PrintBytes("iiii"));
Console.WriteLine(PrintBytes("İİİİ"));
Console.WriteLine(PrintBytes("ıııı"));
public static string PrintBytes(string str)
var bytes= Encoding.UTF8.GetBytes(str);
return String.Format("string: {0}, byte:{1}", str, BitConverter.ToString(bytes));