utf-8编码转换成gb2312(4)


                                                 (icode1  &  0xc0)  !=  0x80  )                        //  invalid  pattern  
                                   {  
                                               break;  
                                   }  

                                   bstr  +=  string.fromcharcode(((icode  &  0x3f)  <<  6)    ¦  (              icode1  &  0x3f));  
                                   noffset  +=  2;  
                                   nremainingbytes  -=  2;  
                       }  
                       else  if  ((icode  &  0xf0)  ==  0xe0)            //  3  bytes  
                       {  
                                   icode1  =    strutf8.charcodeat(noffset  +  1);  

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/3606.html