Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
DWGCODEPAGE
Syntax
C++
OdCodePageId DWGCODEPAGE;
Type
OdCodePageId
Initial value
CP_ANSI_1252
Read-Only
Yes
Saved In
Database
Versions
R12+

 

The DWGCODEPAGE variable specifies the database system's code page when the database was created. The value can be: 

 

Name
Value
Description
CP_UNDEFINED
0
undefined
CP_ASCII
1
ascii
CP_8859_1
2
iso8859-1
CP_8859_2
3
iso8859-2
CP_8859_3
4
iso8859-3
CP_8859_4
5
iso8859-4
CP_8859_5
6
iso8859-5
CP_8859_6
7
iso8859-6
CP_8859_7
8
iso8859-7
CP_8859_8
9
iso8859-8
CP_8859_9
10
iso8859-9
CP_DOS437
11
dos437
CP_DOS850
12
dos850
CP_DOS852
13
dos852
CP_DOS855
14
dos855
CP_DOS857
15
dos857
CP_DOS860
16
dos860
CP_DOS861
17
dos861
CP_DOS863
18
dos863
CP_DOS864
19
dos864
CP_DOS865
20
dos865
CP_DOS869
21
dos869
CP_DOS932
22
dos932
CP_MACINTOSH
23
mac-roman
CP_BIG5
24
big5
CP_KSC5601
25
ksc5601
CP_JOHAB
26
johab
CP_DOS866
27
dos866
CP_ANSI_1250
28
ansi 1250
CP_ANSI_1251
29
ansi 1251
CP_ANSI_1252
30
ansi 1252
CP_GB2312
31
gb2312
CP_ANSI_1253
32
ansi 1253
CP_ANSI_1254
33
ansi 1254
CP_ANSI_1255
34
ansi 1255
CP_ANSI_1256
35
ansi 1256
CP_ANSI_1257
36
ansi 1257
CP_ANSI_874
37
ansi 874
CP_ANSI_932
38
ansi 932
CP_ANSI_936
39
ansi 936
CP_ANSI_949
40
ansi 949
CP_ANSI_950
41
ansi 950
CP_ANSI_1361
42
ansi 1361
CP_ANSI_1200
43
ansi 1200
CP_ANSI_1258
44
ansi 1258

 

Access Methods
OdDbDatabase::getSysVar()
 
OdDbDatabase::getDWGCODEPAGE()

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"DWGCODEPAGE"); OdInt16 page = pRb->getInt16(); odPrintConsoleString(L"nDatabase system code page = %d", page); // or // odPrintConsoleString(L"nDatabase system code page = %d", (int)pDb->getDWGCODEPAGE();

File: SysVarDefs.h 

Module: API Reference 

The odDbSetDWGCODEPAGE() global function. 

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