Character Encoding Conversion
Character Encoding Conversion
Character Encoding Conversion
SAP provides the CCC converter program to convert characters from an encoding to another one.
Table of contents
1100 iso-8859-1
1160 windows-1252
4102 utf-16be
4103 utf-16le
4110 utf-8
8000 Shift-JIS
8300 BIG5
1 of 3 13/05/2021 21:04
Character encoding conversion - ABAP Development - Community Wiki https://wiki.scn.sap.com/wiki/display/ABAP/Character+encoding+con...
Converting from one code page to another may be not possible for all characters of the source code page,
because they do not exist in the target codepage.
For example, converting from big5 (Chinese) to us-ascii makes no sense. If you think that it should be
possible, then you probably didn't choose the right .
In that case, we have to provide a replacement character to the CCC converter
Sequence of bytes is not recognized as a character in the source code page. It means that:
either the sender program does not respect the code page (then ask the sender program to correct the
error)
or you should choose another code page (sometimes, differences between code pages are very little)
or your program has erroneously shortened input bytes, last input byte(s) does mean nothing.
For example, the 2 only bytes D8 00 mean nothing in utf-16le: 2 following bytes are expected to be able
to identify the character (here encoded on 4 bytes).
Links
SDN blog - BSP - a Developer's Journal: Part VII - Dealing with multiple languages (English, German, Spanish,
Thai, and Polish), by Thomas Jung
What is Unicode
Unicode Transformation Format
SAP library:
Internationalization
Character codes: short explanation of character encoding
Data conversion: short explanation of conversion possibilities in ABAP
Sem rótulos
3 Comentários
Former Member
Paolo Baruffaldi
Extremely helpful!
Thanks Sandra Rossi
2 of 3 13/05/2021 21:04
Character encoding conversion - ABAP Development - Community Wiki https://wiki.scn.sap.com/wiki/display/ABAP/Character+encoding+con...
Marco SILVA
Hi Sandra,
Thank you for this blog!
I'm trying to create a file in encoding "ISO-8859-15", which should work for example for € (EUR) character,
but at the end I get a file in "Windows-1252" encoding and displaying wrong those special characters...
Any clue about what can be wrong?
Best regards,
Marco Silva
3 of 3 13/05/2021 21:04