Dear All,
First i shd say , thanks to all people for sharing knowledge each other in this forum.


I am having one problem for unsigned char * string changed to QString korean font is currupting.

char* BConvertToMultiByte(unsigned short* pStrIn, int nSize)
QTextCodec* pCodec = NULL;
pCodec = QTextCodec::codecForName("EUC-KR"); break;
unsigned short* pSrc = pStrIn;
QString temp;
while( *pSrc )
{
temp += QChar(*pSrc);
pSrc++;

}
QByteArray strOut= pCodec->fromUnicode(temp);
return strOut.data();

This return value collecting as a unsigned char * strTemp;
strTemp if i print this its printing correct charectors in korea
QString qstrVal((char *) strTemp);
qstrVal if i print its comming different charectors, its hex values also different from strTemp hex values.
I have tried different encodingings like
QTextCodec::codecForName("EUC-KR");
QTextCodec::codecForName("utf8");
unicode convertion, like pCodec->fromUnicode(),pCodec->fromAscii... so many methods which are available in QTextcodec and QString functionlities.

So please can any one tell me how to get proper font charectors...

before showing to UI also i am printing this charectors its not similar...



Thanks in advance...

Bhaskar.kotha



I tried doing