1

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'>بازگشت بÙ? Ù?اÚ?Ù? 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
Eagle Eye
  • 13
  • 3

1 Answers1

2

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");
Lars
  • 95
  • 2