ascii编码
- ASCII编码:美国信息标准交互码,就是用来显示西欧字符
- 获取字符ascii编码
String str = et.getText().toString().trim(); char[] chars = str.toCharArray(); String vs = ""; for (int i = 0; i < chars.length; i++) { char c = chars[i]; int value = c; vs = vs + value + " "; } tv.setText(vs);