C++中漢字與unicode碼的轉換

         已知一個漢字的unicode碼(例如-20319),能夠經過如下方法獲得該unicode碼對應的漢字:數組         1,聲明一個3字節長的字符數組,例如char a[3];code         2,對該數組賦值爲char a[3]={unsigned(-20319)/256,unsigned(-20319)%256,0};unicode         3,輸出直接爲
相關文章
相關標籤/搜索