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

把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.

 

posted @ 2018-06-29 19:28  confusion  阅读(3169)  评论(1编辑  收藏  举报