Hi Coises,
Thank you for ur support..
I tried using EUC-KR and UTF-8, 16 all encoding names...
Before i get source unsigned char i am getting like
unsigned short* pStrIn ----- this is input
int nSize,
char* pOutput;
unsigned short* pSrc = pStrIn;
QString temp;
while( *pSrc ){ temp += QChar(*pSrc);
pSrc++;}
pCodec = QTextCodec::codecForName("EUC-KR");
QByteArray strOut= pCodec->fromUnicode(temp);
memcpy(pOutput, strOut.data(), strOut.size());
this pOutput i am getting as a unsigned char * to my function.
In my function i am doing
unsoigned char * to QString.
pMedia->pLinkPath this is unsigned char *
QString tmpStr;
QTextCodec *utf8Codec = QTextCodec::codecForName("eucKR");
tmpStr = utf8Codec->toUnicode((char *)pMedia->pLinkPath)
for english font is ok but for korean font font is currupting.
tmpStr.sprintf("%s",pMedia->pLinkPath);
when i am printing hex values that hex values also getting different for some charector.
Bookmarks