【c语言】warning C4566

【c语言】warning C4566

问题

warning C4566: character represented by universal-character-name ‘\u5E74’ cannot be represented in the current code page (1252)。
warning C4566: character represented by universal-character-name ‘\u9752’ cannot be represented in the current code page (1252)

int main()
{
int age = 10;
if (18<=age<28)
printf(“青年\n”);
return 0;
}

输出结果:
??

解决方法

C11标准中引入了 通用字符名 ( Universal Character Names )这个概念。 其实,所为的通用字符名也就是我们俗称的Unicode
标准代码页(codepage) 1252 Windows-1252 Western European (Windows)
ANSI规定简体中文GB编码的代码页是936,所以GB编码又叫做ANSI Code Page 936
代码页的英文为Code Page,往往简称为CP。代码页也称为“内码表”,是计算机中与特定字符集(准确地说是字符集的某个字符编码方式CEF)相对应的一张字符编码对照表(这里的字符编码实

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值