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 default ANSI code page and OEM code page in case conversion with codepageId is not OK 

Returns eOk if successful, or an appropriate error code if not.

Maps the specified Unicode character to the specified code page.

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