RSCP0032: Character Conversion Test

Title

Test properties of function SCP_TRANSLATE_CHARS. This translates a short text from one codepage into another.

Purpose

This is a test program.

Features

  • Input text
    • You can input any text.
    • The input can be transferred to the function using a C field or a C string. You can also enter a hexadecimal character string and convert it to a C string used as the input.
    • The system assumes the text is coded in the current codepage. You can also specify a different codepage.
  • Output field
    • A codepage must be specified for output. “Possible entries” are available to help you select the codepage number. Example: “0120” is IBM-00500 (EBCDIC), “1100” is ISO-8859-1 (“Latin-1”), “4110” is UTF-8.
    • The output can either be an X field or a C string.
    • You can set the length of the output. If you use the C field “120” is the maximum length.
    • If you want output to be a C string, the string can either be of unlimited length or you can set a length.
  • Output list
    • The program also outputs hexadecimal character strings in the list. Two hexadecimal characters are superimposed on each other pro byte.

You May Also Like

Leave a Reply?