Work with Unicode, ccsid & DBCS

Source: Internet
Author: User

Unicode is a standard that precisely defines a character set as well as a small number of encodings for it. it enables you to handle text in any language efficiently. it allows a single application executable to work for a global audience.

Unicode provides a unique number for every character, regardless of platform, language, or program.

A Unicode Transformation Format (UTF) is the algorithmic mapping from every Unicode value to a unique byte sequence.

UTF-8 converts (via an algorithm) Unicode data so that it: Uses 8 data bits to encode the data.

OS/400 (r) supports UTF-8 encoding with ccsid 1208.

UTF-16 is an encoding of Unicode in which each character is composed of either one or two 16-bit elements.

OS/400 (r) supports UTF-16 encoding with ccsid 1200.

UTF-32 is an encoding of Unicode in which each character is composed of 4 bytes.

The ASCII (American Standard Code for information interchange) Character Set uses 7-bit units, with a trivial encoding designed for 7-bit bytes. it is the most important character set in use today, despite its limitation to very few characters, because its design is the foundation for most modern character sets. ASCII provides only 128 numeric values, and 33 of those are reserved for special functions.

The ebcdic (Extended Binary-coded decimal interchange code) Character Set and a number of associated character sets, designed by IBM (R) for its mainframes, uses 8-bit bytes. it was developed at a similar time as ASCII, and shares the same set of base characters and has other similar properties. unlike ASCII, the Latin letters are not combined in two blocks for upper-and lower-case. instead, the letters are arranged so that their hexadecimal values have second digits of 1 through 9 (another punch card-friendly design ).

The most common encodings (character encoding schemes) use a single byte per character, and they are often called single-byte character sets (sbcs ). they are all limited to 256 characters. because of this, none of them can even cover all of the accented letters for the Western European ages.

However, East Asian writing systems needed a way to store over 10,000 characters, and so double-byte character sets (DBCS) were developed to provide enough space for the thousands of ideographic characters in East Asian writing systems. here, the encoding is still byte-based, but each two bytes together represent a single character.

Even in East Asia, text contains letters from small alphabets like Latin or katakana. these are represented more efficiently with single bytes. multi-byte character sets (MBCS) provide for this by using a variable number of bytes per character, which distinguishes them from the DBCS encodings.

The ccsid for BIT data is 65535.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.