Toplaintext returns escape sequence preceeding the required characters
-
hello, i have used toplaintext method to get the text entered by the user in a textedit and i save it in a file through wostream, but i get the commas and new lines entered by the user as , and \n etc which is not what i want..a relevant part of my code is below:
@
key=ui->textEdit->toPlainText().toStdWString();
json->AsObject()[L“guards”] = new JSONValue(key);
std::wstring st = json->Stringify();
myfile1 << st;
myfile1.close(); @Please help as I am relatively new in C++ and need urgent help..
[edit: added missing coding tags @ SGaist]