CCnvCharacterSetConverter* converter=CCnvCharacterSetConverter::NewLC();
//转码使之显示到屏幕上的时候能显示中文
if(converter->PrepareToConvertToOrFromL(KCharacterSetIdentifierGbk,
iEikonEnv->FsSession())!=CCnvCharacterSetConverter::EAvailable)
User::Leave(KErrNotSupported);
TText8 *str = (TText8*)"无内容";
TInt state=CCnvCharacterSetConverter::KStateDefault;
TPtrC8 source( str );
TBuf<50> ptr;
if(CCnvCharacterSetConverter::EErrorIllFormedInput == converter->ConvertToUnicode(ptr, source, state))
User::Leave(KErrArgument); //Leave if error in conversion.
CAknInformationNote* note = new (ELeave) CAknInformationNote;
note->ExecuteLD(ptr);
//转码使之显示到屏幕上的时候能显示中文
if(converter->PrepareToConvertToOrFromL(KCharacterSetIdentifierGbk,
iEikonEnv->FsSession())!=CCnvCharacterSetConverter::EAvailable)
User::Leave(KErrNotSupported);
TText8 *str = (TText8*)"无内容";
TInt state=CCnvCharacterSetConverter::KStateDefault;
TPtrC8 source( str );
TBuf<50> ptr;
if(CCnvCharacterSetConverter::EErrorIllFormedInput == converter->ConvertToUnicode(ptr, source, state))
User::Leave(KErrArgument); //Leave if error in conversion.
CAknInformationNote* note = new (ELeave) CAknInformationNote;
note->ExecuteLD(ptr);