当前位置:网站首页>Qt warning: C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
Qt warning: C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
2022-07-22 04:55:00 【csdndenglu】
1、Qt导入其他电脑上开发的项目后,出现这种警告:
Qt warning: C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
用下列方法:
工具-选项-文本编辑器-行为,【默认编码】:UTF-8,【UTF-8 BOM】:如果编码是UTF-8则添加。最后随便改动一下出现警告的文件保存,就会保存为:UTF-8 带BOM 格式。
2、QMessageBox显示中文乱码
如上图,如果出现乱码可以尝试:
QMessageBox messageBox(QMessageBox::NoIcon,QString::fromLocal8Bit("退出"),QString::fromLocal8Bit("你确定要退出吗?"),QMessageBox::Yes | QMessageBox::No, NULL);
边栏推荐
- ARC110E Shorten ABC
- What is SCM? What are the components of SCM?
- Execute function semicolon immediately
- 我,AI博士生,在线众筹研究主题
- AT2336 [ARC069D] Flags
- Yuanqi Digitalization: existing mode or open source innovation Lixia action
- 梅科尔工作室——HarmonyOS应用开发培训第三次作业
- 源启数字化:既有模式,还是开源创新?|砺夏行动
- Fundamentals of machine learning (5) image outline
- Use ffmpeg to push and pull streams
猜你喜欢
Large file slice upload and breakpoint continuation
[leetcode array -- sorting + rolling division maximum common divisor] 6122. The minimum number of deletions that make the array divisible
随机森林学习笔记
梅科尔工作室——HarmonyOS应用开发培训第三次作业
GD32F470之串口空闲中断+DMA篇
Leetcode daily question 814. Binary tree pruning
[leetcode weekly race -- hash table number pairs] 6164. Maximum sum of digit and equal number pairs
层序遍历BFS(广度优先)
Analyzing and optimizing robot course system and teaching strategy
Jincang database kmonitor user guide --3. deployment
随机推荐
MySQL查询计划key_len如何计算
【Unity】 UI跟随3D物体,世界坐标转UI坐标
Simulation Implementation of string
LeetCode 每日一题——814. 二叉树剪枝
stm32使用各种传感器的教程
Binary tree OJ question, IO question
Fundamentals of action theory
关于promise then的连续链式使用问题
Inventory of e-mail security incidents in China in the first half of 2022
Model compression, acceleration and mobile deployment
AT1225 かかし
UE4 设置夜晚(根据DirectionalLight方向更新SkySphere)
Dc-4-range practice
QDataStream
Chaque jour - jour 41 - 125. Vérifier la chaîne de palindromes
ARC110F Esoswap
Li Kou daily question - day 41 -125. Verify the palindrome string
使用ffmpeg推流拉流
模型压缩、加速及移动端部署
Mask RCNN source code explanation