文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>把普通字符串转换成Unicode编码?

把普通字符串转换成Unicode编码?

时间:2010-10-20  来源:火地晋

http://topic.csdn.net/t/20030320/10/1553600.html

来自于timmy3310的回帖。

C#里面的字符串常量都是Unicode


如果你需要Unicode字节:

string   test   =   "你好 ";

byte[]   testBytes   =   System.Text.Encoding.Unicode.GetBytes(   test   );

 怎么得到一个字符的ASCALL码?

 

char   c   =   'A '; int   asciiOfA   =   (int)c;     //asciiOfA   就是   'A '   的ASCII码

相关阅读 更多 +
排行榜 更多 +
别惹神枪手安卓版

别惹神枪手安卓版

冒险解谜 下载
坦克战争世界

坦克战争世界

模拟经营 下载
丛林反击战

丛林反击战

飞行射击 下载