Ang написал(а):
И чего, бриться теперь что-ли? А других способов нет?
Попробуй это.
Но он конвертит только между CODEPAGE, которые установлены в SAP-системе
Variant 4
TRANSLATE c ...FROM CODE PAGE g1 ...TO CODE PAGE g2.
Parts marked with " ..." are interchangeable
TRANSLATE c TO CODE PAGE g2.
TRANSLATE c FROM CODE PAGE g1.
Effect
Converts the contents of the field c from character set g1 to character set g2. This variant uses the conversion table g1 to determine the SAP character, which is then used to determine the new character from g2.
Transaction SPAD allows you to display and maintain character sets. If one of the conversion tables does not exist, the runtime error CONVERSION_CODEPAGE_UNKNOWN occurs. Conversion combinations that are maintained as part of the runtime system for performance reasons do not trigger runtime errors, and you cannot change them using Transaction SPAD.
Example
DATA c(72) TYPE C.
TRANSLATE c FROM CODE PAGE '1110' TO CODE PAGE '0100'.
This statement converts the contents of field c from the HP-UX character set to IBM EBCDIC.
Note
Fields with types I, P, F, and X remain unchanged by the conversion. The syntax check only allows character fields for specifying the codepage. However, since the codepage is maintained in table TCP00 as a type N field with length 4, you should use this type.
_________________
Ex ipso fonte bibere
Цитата:
Abyssus abyssum invocat
Dies diem docet
Ducunt volentem fata, nolentem trahunt
Estote prudentes sicut serpentes