publicbyte[]GetChineseCode(stringchineseChar){varbytes=newbyte[2];varbyteArr=Encoding.GetEncoding(gb2312).GetBytes(chineseChar);varfirst=(byte)(byteArr[0]+0x72);if(first=0x24){first+=0xe;bytes[0]=first;}varsecond=(byte)(byteArr[1]+0x80);bytes[1]=second;if(second=0x2f){if(second=0x32){second-=0xa;bytes[1]=bytes[0];bytes[0]=second;}}returnbytes;}privatebyte[]GetChineseCodeID(byte[]chinesec){varjudge=0x2f=chinesec[0]+0xa&&chinesec[0]+0xa=0x32;varfirst=judge?chinesec[1]:chinesec[0];varsecond=judge?chinesec[0]:chinesec[1];first=(byte)first-0xe=0x24?(byte)(first-0xe):first;first=(byte)(first-0x72);second=judge?(byte)(second+0xa):second;second=(byte)(second-0x80);returnnewbyte[]{first,second};}