solve the chinese path problem

This commit is contained in:
Tang1705
2020-05-29 12:47:16 +08:00
parent 05742f1b36
commit a0caac5e8e
23 changed files with 23 additions and 36 deletions

View File

@@ -25,7 +25,9 @@ void MyThread::run()
void MyThread::setPcd(QString str)
{
pcd = str.toStdString();
QTextCodec* code = QTextCodec::codecForName("GB2312");//½â¾öÖÐÎÄ·¾¶ÎÊÌâ
pcd = code->fromUnicode(str).data();
// pcd = str.toStdString();
}
PointCloud<PointXYZRGB> MyThread::getCloud()