Revision as of 14:04, 14 November 2007 by Forum Nokia KB (Talk | contribs)

Text conversion between 16-bit Unicode and UTF-8 using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search


ID TSS000196 Creation date April 7, 2005 (Updated: November 14, 2007)
Platform S60 (All Editions), Series 80 Devices  
Category Symbian C++ Subcategory Base & System


CnvUtfConverter class provides static methods for converting 16-bit Unicode (UCS-2) descriptors to 8-bit (UTF-8) format, and vice versa.


 #include <utf.h>    // link against charconv.lib
 // Copy data from srcBuf16 to destBuf8
 CnvUtfConverter::ConvertFromUnicodeToUtf8( destBuf8, srcBuf16 );
 // Copy data from srcBuf8 to destBuf16
 CnvUtfConverter::ConvertToUnicodeFromUtf8( destBuf16, srcBuf8 );
100 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.