当前位置:网站首页>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边栏推荐
猜你喜欢

Water bottle effect production

archery数据库审核平台部署

mongoDB快速入门

What's a good gift for Tanabata? Niche and advanced product gift recommendation

redis缓存设计与性能优化

It is recommended to wear air conduction earphones, which do not need to wear in ear

About the collation of shader keyword

RayMarching实现体积光渲染

RayMarching realizes volume light rendering

cocos2d-x 学习笔记——瓦片地图TiledMap
随机推荐
[realize the simple version of minesweeping games]
遍历 二叉树
How to simulate the implementation of strcpy library functions
[hash table basics]
Optimization ideas from ordinary query commodities to highly concurrent query commodities
代码整洁之道(二)
Scratch command
MySQL主从
Dynamic memory management function of C language
[dynamic planning -- the best period for buying and selling stocks Series 2]
技术分享 | 如何模拟真实使用场景?mock 技术来帮你
mongoDB快速入门
Compilation and preprocessing of C language
QT使用MSVC编译器输出中文乱码问题
搭建PHP7私有仓库
JS variable is equal to 0, etc. '
项目编译NoSuch***Error问题
Redis cache design and performance optimization
Network communication and tcp/ip protocol
mysql索引优化