hi, my friends
I write a program to put some Chinese words into the file. and I use the class RFile::write and RFile::flush to implement. But I meet a problem that is write function only get parameter of 8 bits, Chinese is composed 2 bytes. I don't know how to solve the problem.
Thank you my friends!
The belove is part of my code.
TPtrC16 ptr16( word );
//change the 16 to 8
CCnvCharacterSetConverter* converter = CCnvCharacterSetConverter::NewLC();
CleanupStack::PopAndDestroy(2); // fs, converter
TInt suucess = buf8.Length();
buf8[suucess+1 ] = ';';
suucess= file->Write( buf8 );
Re: Write chinese words to the file.