我想做的是比较 2 个具有特殊字符的 QStrings(法语)
首先我从服务器收到的 json 数据保存在 txtInfo
txtInfo = "Présenter";
当我遇到这样的情况时,它不会起作用(它不会设置状态。)
if (txtInfo == "Présenter"){
m_appState = 8;
m_appStateString = AppStatesArray[m_appState];
}
else {
m_appState = -1;
m_appStateString = "UNKNOWN";
}
我错过了什么?如果我想比较的不是法语而是中文怎么办?
非常感谢