wcstombs: character encoding?

前端 未结 4 572
轻奢々
轻奢々 2021-01-14 14:36

wcstombs documentation says, it \"converts the sequence of wide-character codes to multibyte string\". But it never says what is a \"wide-character\".

Is it implici

4条回答
  •  太阳男子
    2021-01-14 14:51

    It converts whatever your platform uses for a "wide char" (which I'm lead to believe is indeed UCS2 on Windows, but is usually UCS4 on UNIX) into your current locale's default multibyte character encoding. If your locale is a UTF-8 one, then that is the multibyte encoding that will be used - but note that there are other possibilities, like JIS.

提交回复
热议问题