当前位置:网站首页>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边栏推荐
- RayMarching realizes volume light rendering
- NiO example
- [explain in detail how to realize Sanzi chess step by step]
- 进程和线程的区别
- Water rendering example
- Fermat's theorem
- Which brand of air conduction earphones is good and highly praised
- 技术分享 | 服务端接口自动化测试, Requests 库的这些功能你了解吗?
- How to store floating point data in memory
- Mongo SSL configuration practice
猜你喜欢

技术分享 | 使用 cURL 发送请求

Leetcode skimming diary sword finger offer II 050. sum of downward path nodes

浅谈Cookie和Session

Lancher deployment practice

技术分享 | 如何模拟真实使用场景?mock 技术来帮你
![[dynamic planning -- the best period for buying and selling stocks series 3]](/img/9f/f6c07264f5ffaa0fdfcc724c713e83.png)
[dynamic planning -- the best period for buying and selling stocks series 3]

技术分享 | 使用postman发送请求

Explain in detail

redis实现分布式锁思路及redission分布式锁主流程分析

项目编译NoSuch***Error问题
随机推荐
Everything you don't know about time complexity is here
Which is the best air conduction Bluetooth headset? Air conduction Bluetooth headset ranking
Mysql-8.0.17-winx64 (additional Navicat) manual configuration version installation
什么是线性表?
File operation in C language
Graphic pipeline foundation (part outside)
How to calculate the size of structure, segment and Consortium (common body)
技术分享 | 服务端接口自动化测试, Requests 库的这些功能你了解吗?
C language memcpy library functions and the role of memmove
等保3.0-服务器三权分立配置
redis缓存设计与性能优化
[pta ---- traversal of tree]
yapi漏洞挂马程序chongfu.sh处理
Mongo SSL configuration practice
[untitled]
Personal understanding of Chinese remainder theorem
[dynamic planning -- the best period for buying and selling stocks Series 2]
技术分享 | 如何模拟真实使用场景?mock 技术来帮你
网络——数据链路层
archery数据库审核平台部署