All pastes #139477 Raw Edit

Something

public cpp v1 · immutable
#139477 ·published 2006-08-20 00:07 UTC
rendered paste body
	QString LineMessage = LineCommand->displayText();	QChar lettre ;	int unicodevalue;	QList<QString> listunicode_original ;	QList<QString> listunicode ;	QString entitai = "&#";	QString temporairestring;	//QUrl urlmessage;				for(i=0; i < LineMessage.size(); i++)	{		lettre = LineMessage.data()[i];		unicodevalue = lettre.unicode();		if ( unicodevalue > 127 )		{			listunicode_original.append(lettre);						temporairestring = QString::number(unicodevalue) ;			entitai.append(temporairestring) ;			entitai.append(";");						listunicode.append(entitai);						entitai = "&#";			}			}		for ( i = 0; i < listunicode.size() ; i++ )	{		LineMessage.replace(listunicode_original[i], listunicode[i]);	}