Programmer Home

Learn and Life

首页 归档 关于

Qt+MSVC开发中字符串转换及中文乱码问题

2021年11月01日 留言

GB2313:

string转QString:

1
QString::fromLocal8Bit("字符串")

UTF-8:

string转QString:

1
QString::fromStdString("字符串")

文章目录

  1. GB2313:
  2. UTF-8:

原文链接: http://enofeng.github.io/2021/11/01/Qt+MSVC开发中字符串转换及中文乱码问题/

版权声明: 转载请注明出处.

分享到:
newer
问题:C++读取csv文件的时候,`ID`显示乱码
older
报错:QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefine

最新文章

  • 使用osg做一个不那么新的需求,是一件需要勇气的事情🙂
  • 问题:C++读取csv文件的时候,`ID`显示乱码
  • Qt+MSVC开发中字符串转换及中文乱码问题
  • 报错:QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefine
  • OsgQt环境搭建注意事项

归档

  • 2022年05月2
  • 2021年11月117

友情链接

  • CSDN
  • GitHub
  • Old Blog

网站地图 | 订阅本站 | 联系博主

,

Copyright © 2022 Devin·Finn. Theme by BlueLake. Count by busuanzi. Powered by Hexo.