当前位置:网站首页>QT uses MSVC compiler to output Chinese garbled code
QT uses MSVC compiler to output Chinese garbled code
2022-07-28 06:50:00 【summerhave7fishes】
Use QStringLiteral() Macro encapsulation string
QString str=QStringLiteral(" Current capacity :")+QString::asprintf("%d %%",arg1);mandatory MSVC The compiler uses UTF-8 Generate executable file by encoding , You need to add the following statements in front of each header file and source program file that uses Chinese strings :
#if _MSC_VER >=1600 //MSVC2015>1899,MSVC_VER=14.0
#pragma execution_character_set("utf-8")
#endif边栏推荐
- 数组转链表
- Question skimming record - hash table
- 技术分享 | 使用postman发送请求
- How to calculate the size of structure, segment and Consortium (common body)
- SSAO by computer shader (II)
- 单项链表的创建、遍历以及按要求查找结点
- [the beginning of self redemption]
- HDU-5805-NanoApe Loves Sequence(思维题)
- [basic knowledge of binary tree]
- Code tidiness (I)
猜你喜欢
随机推荐
Source code analysis of countdownlatch of AQS
Personal understanding of Chinese remainder theorem
JS variable is equal to 0, etc. '
项目编译NoSuch***Error问题
MySQL主主
mongo ssl 配置实战
RayMarching realizes volume light rendering
OSI七层模型
搭建PHP7私有仓库
OJ 1018 counting game
PKU-2524-Ubiquitous Religions(并查集模板)
Two dimensional array practice: spiral matrix
测试面试题集锦(五)| 自动化测试与性能测试篇(附答案)
Network communication and tcp/ip protocol
Prometheus monitoring Nacos
AQS之ReentrantLock源码解析
Implementation of simple address book in [c language]
js 变量等于0也等也' '问题
Optimization ideas from ordinary query commodities to highly concurrent query commodities
Water bottle effect production









