Skip to Content
0
Former Member
Oct 10, 2012 at 03:14 PM

How to check if system is UTF-8 or ISO-8859-1 or sth. else

6489 Views

Hi folks,

how can I see what kind of system we have and which encoding is our default?

Background

==========

We have a program to generate Excel-Files and decide by the country which encoding is active.

For example:

IF sy-opsys CS 'Windows'.
CASE lv_land1.
WHEN 'CZ' OR 'HR' OR 'HU' OR 'PL' OR 'RO' OR 'SK' OR 'SI'."Tschechien / Kroatien / Ungarn / Polen / Rumänien / Slowakei / Slowenien
lv_encoding_iso = 'encoding="ISO-8859-2"'.
WHEN 'RU' OR 'BG' OR 'UA'."Russland oder Bulgarien oder Ukraine
lv_encoding_iso = 'encoding="ISO-8859-5"'.
WHEN 'GR'."Griechenland
lv_encoding_iso = 'encoding="ISO-8859-7"'.
WHEN 'HE'."Hebräisch
lv_encoding_iso = 'encoding="ISO-8859-8"'.
WHEN 'TR'."Türkei
lv_encoding_iso = 'encoding="ISO-8859-9"'.
ENDCASE.

Thanks for any help.