把QString写到文件中可以用toutf8()函数

时间:2018-06-29 19:49:23   收藏:0   阅读:640

把QString写到文件中可以用toutf8()函数

 

QByteArray QString::toUtf8() const

Returns a UTF-8 representation of the string as a QByteArray.

UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString.

 

原文:https://www.cnblogs.com/confusion/p/9245054.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!