gpt4 book ai didi

c++ - 你能写出 "U+9FA5 (龥)"和 "U+0041 (A)"unicode 字符的 UTF-8、UTF-16 和 std::wstring 表示吗?

转载 作者:行者123 更新时间:2023-11-28 03:54:11 24 4
gpt4 key购买 nike

请说明 Windows 和 Linux 机器之间的表示是否存在差异(如 std::wstring 在 Linux 中消耗 4 个字节,在 Windows 中消耗 2 个字节)。
如有必要,还请指定字节顺序。

最佳答案

不,我不能。但是this site可以。

关于c++ - 你能写出 "U+9FA5 (龥)"和 "U+0041 (A)"unicode 字符的 UTF-8、UTF-16 和 std::wstring 表示吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4264797/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com