简体   繁体   中英

Problem with c++ unicode utf-8 decode characters

I'm trying to print some encoding characters using "en_US.UTF-8" standard on a Linux machine, but there are some characters that do not appear. I can see characters from 161 to 255 correctly, but from 128 to 160 I can not see anything. This is the code I am using:

int main(void)
{      

    setlocale(LC_ALL, "en_US.UTF-8");
    wchar_t c;

    for (c = 128; c < 256; c++) {
      std::wcout<< " \n" << c << '\n';
       }

    return 0;
}

someone who can help me with this? I would appreciate it very much.

The Unicode code points between 128 and 160 represent (non-printable) control codes.

Cf. Unicode chart table

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM