R-code in Code Page (-cprcodein)
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
R-code in Code Page (-cprcodein)
Use R-code in Code Page (-cprcodein) to read the r-code text segments, as
if they were written in the code page specified by -cprcodein, and convert
them to the Internal Code Page (-cpinternal) code page. Usually
when OpenEdge reads r-code, it converts text segments to the code page specified by Internal Code Page (-cpinternal).
| Operating system and syntax | UNIX / Windows |
-cprcodein
code-page
|
||
|---|---|---|---|---|
| Use with | Maximum value | Minimum value | Single-user default | Multi-user default |
| Client Session, Database Server, DataServer | — | — | -cpinternal | -cpinternal |
- code-page
- Name of the code page for reading r-code text segments.
CAUTION: This parameter is for use during very rare situations and in general
should not be used. OpenEdge reads text segments as if they are written in the code page
specified by R-code In Code Page (-cprcodein), even if the text segments were written with a different code page. For
example, if you use the following startup parameters and run a .r file
written with code page IBM850, OpenEdge converts the text segments from ISO8859-1 to ibm861.
This can produce incorrect results, if the .r file was correctly
labeled internally as IBM850:
-cprcodein ISO8859-1 -cpinternal
ibm861To retrieve the value of this startup parameter at runtime, use the
SESSION system handle. To determine the code page of an r-code file, use
the RCODE-INFO handle.