Skip to Content
author's profile photo
Former Member

Unicode Enabling

Hi All,

While going through the unicode enabling of ABAP programs, I got stuck on some places:

1) what is meant by platform-dependent as in UTF-16 is platform-dependent or the offset and lenghts are platform-dependent.What is meant by the term 'platform'?

2) What's the fragmented view in unicode?

3) how is the storage done for character types and byte types ?

4) What's meant by alignment gaps while talking about storage of data in unicode?

5) And how is a structure made in a program stored in a unicode environment?

Thanks in Advance

Nishant

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Aug 12, 2004 at 10:11 AM

    1) Hard to tell without context. But in general UTF-16 can have own flavors for little and big endian platforms. In this sense platform means byte order of the underlying CPU.

    2-5) I think this stuff is to technical to boffer with. Significant is the fact that the Size of an Character differs wether you are on a true Unicode system or a non-Unicode System with ABAP Unicode semantics. A character is represented by 2 bytes on UC and 1 byte on Non-Uc systems.

    In older releases there were simple conversion rules due the byte layout is known. These days are no gone.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      As far as I know the alignment gaps:

      I - dunno know

      F - should be 8 Bytes

      C - should be 2 Bytes on UC and 1 byte on non UC

      SubStructures - Max Alignment of Components

      But if possible avoid to write software which relies too strong on those rules.

      Kind Regards

      Klaus