如何获得Unicode值 [英] how to get Unicode value

查看:114
本文介绍了如何获得Unicode值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文本框中输入了字符.如何在asp.net中获取该ASCII值

I Entered character in textbox. how to get that ASCII value in asp.net

推荐答案

string value = "9quali52ty3";

// Convert the string into a byte[].
byte[] asciiBytes = Encoding.ASCII.GetBytes(value);


现在,您有了字节的ASCII值的数组.我得到以下信息:

57 113 117 97 108 105 53 50 116 121 51


You now have an array of the ASCII value of the bytes. I got the following:

57 113 117 97 108 105 53 50 116 121 51


这篇关于如何获得Unicode值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆