您的位置:首页 > 其它

字节数组生成的字符串在console出来竟然有表情

2015-08-14 14:20 232 查看
static void ConsoleSmileExpressionTest()
{
byte[] namebytearray = new byte[] { 1, 2, 3, 4, 5, 6 };
string smileexpressstring = Encoding.UTF8.GetString(namebytearray);
for (int i = 0; i < smileexpressstring.Length; i++)
{
Console.WriteLine(smileexpressstring[i]);
}
Console.ReadKey();
}



水平有限,无意间发现的。不知道谁在卖萌,这样好吗~~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: