Miscellany
public text v1 · immutable QString strIn = LineCommand->displayText ;
for( i=0 ; strIn.at(i) ; i++) {
ushort uCode = strIn.at(i).unicode();
if( uCode>127 ) {
QString tmp="#"+QString::number(uCode)+";";
strIn[i]=QChar('&');
strIn.insert(i+1, tmp );
i+=tmp.length()+1;
}
}
LineMessage = strIn