All pastes #139533 Raw Edit

Miscellany

public text v1 · immutable
#139533 ·published 2006-08-20 00:58 UTC
rendered paste body
	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