已知GBK的某段码表,码表对应的字符

for i in range(0xA1A2,0xA1A5):                                                                                                 
        b1=i&0xFF;                                                                                                                 
        b2=i>>8;                                                                                                                   
        GBKChar1=chr(b2);                                                                                                          
        GBKChar2=chr(b1);                                                                                                          
        GBKChar=GBKChar1+GBKChar2;                                                                                                 
        print "%s\t%0X%0X"%(GBKChar,b2,b1);                                                                                        
    for i in range(0xA1AE,0xA1C0):                                                                                                 
        b1=i&0xFF;                                                                                                                 
        b2=i>>8;                                                                                                                   
        GBKChar1=chr(b2);                                                                                                          
        GBKChar2=chr(b1);                                                                                                          
        GBKChar=GBKChar1+GBKChar2;                                                                                                 
        print "%s\t%0X%0X"%(GBKChar,b2,b1);                                                                                        
    for i in range(0xA3A1,0xA3B0):                                                                                                 
        b1=i&0xFF;                                                                                                                 
        b2=i>>8;                                                                                                                   
        GBKChar1=chr(b2);                                                                                                          
        GBKChar2=chr(b1);                                                                                                          
        GBKChar=GBKChar1+GBKChar2;                                                                                                 
        print "%s\t%0X%0X"%(GBKChar,b2,b1);                                                                                        
    for i in range(0xA3BA,0xA3C0):                                                                                                 
        b1=i&0xFF;                                                                                                                 
        b2=i>>8;                                                                                                                   
        GBKChar1=chr(b2);                                                                                                          
        GBKChar2=chr(b1);                                                                                                          
        GBKChar=GBKChar1+GBKChar2;                                                                                                 
        print "%s\t%0X%0X"%(GBKChar,b2,b1)

上一篇:Oracle方向


下一篇:c#Stream学习笔记