Additional GB18030 code page considerations
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
When working with the GB18030 code page, consider the following:
- The GB18030 code page is a multi-byte code page, consisting of one-, two-, and four-byte characters, that extends the GB2312 code page and includes all characters defined in Unicode. Unlike most multi-byte code pages that OpenEdge supports, you cannot use the lead byte of multi-byte characters in the GB18030 code page to determine the character's length. OpenEdge uses the International Components for Unicode (ICU) library to convert characters between the GB18030 code page and Unicode within the OpenEdge GUI client.
- OpenEdge supports the GB18030 code page, primarily, for file
input and output. More specifically, you can use the GB18030 code
page for the following:
- In settings for the
-cpstream,-cplog, and-cpprintstartup parameters - With any ABL
CONVERT SOURCE/TARGETphrase that applies to files, for example:INPUT FROM gb.txt CONVERT SOURCE "GB18030". COPY-LOB FROM FILE "gb.txt" TO myunicodeclob CONVERT SOURCE CODEPAGE "GB18030". - With the
ASC,CHR, andCODEPAGE-CONVERTfunctions (but if used as the target code page ofCHRorCODEPAGE-CONVERT, you cannot use the resulting character or character string in ABL) - With file input and output in the SQL products
- In settings for the
- You cannot use the GB18030 code page in the following instances:
- In other ABL statements (not listed above)
- As a CLOB or LONGCHAR code page
- In settings for the
-cpinternal,-cpterm,-cprcodein, or-cprcodeoutstartup parameters - As a database code page
- With the
PROUTILdb-name-C CONVCHAR CONVERTcommand (although it can be used forCONVCHAR ANALYZE)