API Reference > Other Classes > OdCharMapper Class > OdCharMapper Methods > OdCharMapper::unicodeToCodepage Method
OdCharMapper::unicodeToCodepage Method
Syntax
C++
static OdResult unicodeToCodepage(OdChar sourceChar, OdCodePageId codepageId, OdChar& codepageChar, bool bTryToUseSystemCP = true);
Parameters 
Description 
OdChar sourceChar 
[in] Unicode source character.  
OdCodePageId codepageId 
[in] Object ID of the code page.  
OdChar& codepageChar 
[out] Receives the code page character.  
bool bTryToUseSystemCP = true 
[in] Try to use the default ANSI code page and OEM code page if conversion with codepageId is not OK.  

eOk if the code page character is received successfully, or an appropriate error code otherwise.

Maps the specified Unicode character to the specified code page. 

 

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