Symbian 中文字符串显示问题的解决
2010-03-12 04:34:00 来源:WEB开发网if(converter->PrepareToConvertToOrFrom
User::Leave(KErrNotSupported);
TInt state=CCnvCharacterSetConverter::KStateDefault;
TPtrC8 str( original );
HBufC* iInfoText = HBufC::NewL( str.Length() );
TPtr16 ptr = iInfoText->Des();
if(CCnvCharacterSetConverte
User::Leave(KErrArgument);
res.Zero() ;
res.Copy(ptr) ;
aFileServerSession.Close();
CleanupStack::PopAndDestroy();
delete iInfoText;
#else
res.Format(_L(”wayne len %d”), original.Length()) ;
#endif
}
void CMcAppUi::ConvUni2Gbk(TDesC& original, TDes8& res) {
#ifndef __WINS__
TInt state=CCnvCharacterSetConverte
CCnvCharacterSetConverte
iConv = CCnvCharacterSetConverte
if(iConv->PrepareToConvertToOrFrom
iEikonEnv->FsSession())!=CCnvCharacterSetConverte
User::Leave(KErrNotSupported);
iConv->ConvertFromUnicode(res, original, state) ;
CleanupStack::PopAndDestroy() ;
更多精彩
赞助商链接