If national items cannot be used, and standard alphanumeric items are used instead, special characters are handled by the Framework according to the current encoding set in the environment. To force the Framework to use a particular encoding overriding the operating system settings, you must set the iscobol.encoding * configuration property. For example, in order to force UTF-8 as current encoding for the COBOL application, you add the following entry to the configuration:
consider that 2 means the second byte and not the second digit, so, if the first character of var needs two or more bytes to be represented with the current encoding, the result of the COBOL operation will be a truncated string.
| Copyright (c) 2017 Veryant |
| Contact us |
|
Please share your comments on this manual or on any Veryant product documentation with the email button at the top left |