none
(------------Change Code Page ?------------ )

    Question

  • Hi,all !   my environment is vs08+xp

    #include<iostream> , <mbctype.h>
    int  main() {
     _setmbcp(932) ;    //default 936 , want 932
     unsigned char cc = '\xab' ; //refer to http://msdn.microsoft.com/en-us/goglobal/cc305152 
     cout<<cc<<endl ;           }

    1)the cc truly has a value 171 , but result only  displays an empty line . it cant display the character '才' or anything . WHEN add :setlocale(LC_ALL,"Japanese") The result just display one symbol : ?

     2) character set property of this project  has 3 options :undefined / UNICODE/ MBCS .These all cant work well .

    3)chcp 932 :invalid  chcp 50221:valid   why ? How to be valid for chcp 932 ?

    thanks very much !






    • Edited by john2tj Sunday, December 02, 2012 8:22 AM
    Sunday, December 02, 2012 3:44 AM

Answers

All replies