Is wchar_t needed for unicode support?

前端 未结 8 1440
情书的邮戳
情书的邮戳 2020-12-01 03:49

Is the wchar_t type required for unicode support? If not then what\'s the point of this multibyte type? Why would you use wchar_t when you could accomplish the

8条回答
  •  不思量自难忘°
    2020-12-01 04:07

    Be careful, wchar_t is often 16bits which is not enough to store all unicode characters and is a bad choice ofr data in UTF_8 for instance

提交回复
热议问题