日期:2014-05-20 浏览次数:20764 次
public static String DecodeASCII(String ascii){
ArrayList<Byte> buffer =new ArrayList<Byte>();
for (int i = 0; i < ascii.length(); i += 2)
{
String temp = ascii.substring(i, 2);
byte value = Convert.ToByte(temp, 16);
buffer.add(value);
}
String str = System.Text.Encoding.ASCII.GetString(buffer.toArray());
}