开发者

Convert QString to Local8bit then Converted String to QString

开发者 https://www.devze.com 2023-03-27 00:37 出处:网络
How can i convert this to local8bit then converted string to QString: QString m = QString::FromStdString(\"Ú©Ù?Ù?ات Ù?رتبط(0):<BR> <B

How can i convert this to local8bit then converted string to QString:

QString m = QString::FromStdString("Ú©Ù?Ù?ات Ù?رتبط(0):<BR> <BR><HR><BR><BR><A href='bword://0'>باØ开发者_StackOverflow²Ú¯Ø´Øª بÙ? Ù?اÚ?Ù? 0</A></B><BR><BR><HR><BR><A href='bword://latitude (l,0)'>latitude (l,0)</A> <BR> <B><A href='bword://logical 0 state'>logical 0 state</A> </B><BR><BR><HR>   0   ");code here


If I understand correctly you are looking for the following functions:

std::string str = m.toLocal8Bit().data();

and vice versa

QString m = QString::fromLocal8Bit("SomeText in Local");
0

精彩评论

暂无评论...
验证码 换一张
取 消