最近做xna 的小程序需要显示中文;所以写了段生成GBK汉字的文本文件。

代码如下:

 

代码
1             StringBuilder output = new StringBuilder();
2             for (byte i = 0x81; i <= 0xf7; i++)
3                 for (byte j = 0x70; j <= 0xfe; j++)
4                     output.Append(Encoding.Default.GetString(new byte[] { i, j }));
5             File.WriteAllText("C:\\gbk.txt", output.ToString(), Encoding.UTF8);

 

 

相关文章:

  • 2021-12-28
  • 2021-10-31
  • 2021-04-11
  • 2022-01-10
  • 2021-11-09
  • 2021-05-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
相关资源
相似解决方案