namespace Unicode与汉字互转
{
    class Program
    {
        static void Main(string[] args)
        {
            //Unicode转换成汉字
              Console.WriteLine(Regex.Unescape("\u5b57"));
            Console.WriteLine();

            //汉字转换成Unicode
            Char myChar = Convert.ToChar("字");
            Console.WriteLine(@"\u{0:x4}", (int)myChar);
            Console.ReadKey();
        }
    }
}

相关文章:

  • 2022-01-10
  • 2021-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-01-14
  • 2021-07-23
  • 2022-12-23
相关资源
相似解决方案