API Reference > Other Classes > OdCharMapper Class > OdCharMapper Methods > OdCharMapper::utf8ToUnicode Method
OdCharMapper::utf8ToUnicode Method
Syntax
C++
static bool utf8ToUnicode(const char* srcBuf, int srcSize, OdCharArray& dstBuf);
Parameters 
Description 
const char* srcBuf 
[in] Source UTF-8 character buffer.  
int srcSize 
[in] Size of the source character buffer.  
OdCharArray& dstBuf 
[out] Receives the Unicode character array.  

true if the value is mapped successfully, or false otherwise.

This is actually CESU-8 encoding used in DXF (http://www.unicode.org/reports/tr26/)

  • details Maps the UTF-8 characters to Unicode.
 

Copyright © 2002–2022. Open Design Alliance. All rights reserved.