Skip to main content

What is a code page and why is it needed?

Code pages are necessary because ANSI files only have 8 bits to display a character (char). This means there are only 256 possible characters--not nearly enough for all languages of the world.

The American charset needs only 128 different chars = 7-bit. Because 7-bit was a bit inefficient for computers, this led to the need for another bit; thus, currently, another 128 possibilities are available to display chars.

On MS-DOS systems, some of these bits have been used for drawing boxes and lines. With Windows, these boxes and lines have been removed from the charsets and more foreign chars have been added. For the most Western languages like English, French, German, and others, these additional chars work efficiently. For example, the German charset needs only seven extra chars to the US charset - leaving enough space for special chars from Spain, Norway, and so forth.

However, for certain charsets, such as Cyrillic charsets, the space was not big enough. Codepages fill that gap. A code page in Windows is nothing more than information, so that the upper 128 chars use some other characters. For example, instead of the German umlaut Ü, a Cyrillic Ш appears. both of these items have the ANSI value 205. Thus, if the Windows codepage 1252 is selected, a Ü appears, while with the Russian Windows codepage 1251 Ш (sha) is displayed.

If code pages are used, the system cannot possibly show Ü and Ш on the same display. This is only possible if UNICODE is used. For example, this page uses UNICODE (UTF-8) to display both chars.

While this solves the problem for most of the languages, the code page technique does not help languages with more than 128 special characters, such as Japanese, Korean and Chinese. For these languages, DBCS is available. While the lower 128 characters are still the same as in US code pages, the upper 128 are specially encoded. In this system, one character of the upper 128 chars starts a multi-byte sequence. This means that one character is stored in one or many chars. For example, in Japanese shift-jis, one character can use up to five bytes.

Thus, if a person writes a text file on her or his computer and does not use UNICODE to save it, the current code page is used. If this file is given to someone with some other current codepage, the file is not displayed correctly. So, if you are in Western Europe or the USA, and you get a text file from someone in Greece, Turkey, China, or Japan, the chances are high that the file is useless to you. Kaboom can fix these problems. Simply convert the file into UNICODE and print, edit, or use the file in any way--without losing information. If you edit the file and you want to return it with your changes, simply convert the file back into the code page that the receiver needs. Kaboom makes the entire process easy and quick.

Comments

Popular posts from this blog

Rainy Weekend

What a way to end the weekend, being soaked top-to-bottom in heavy rain! It came very suddenly and we just wanted to get home, so we took the chance and ran all the way home in the rain. It was refreshing actually, I have had a lot on my mind recently and the being soaked certainly gave the brain a bit of a reboot. But then I realised Taiwan rain is quite acidic, not a good thing. Anyhow, I have updated my homepage with something useful for the lunch hours. Its a random lunch selector, which basically displays a picture of a local eatery which we would go to for lunch. It has been pain in the rear-end when deciding where to go for lunch. There are so many choices in the area where I work, so having something like this may ease the troublesome decision which we all make on a daily basis. I've also made use of the ned 8MB ADSL line by doing a bit of downloading and listening to online radio. Certainly makes a difference and if you guys can get it, then get it! I just read th...

Superman Snappy

Snap the man of steel and score points! My first attempt, I got 82. This will just have to do until I get a new camera.

Homeward Bound (For 2 Weeks)

We're setting off later this evening to UK for a couple of weeks. Can't wait to see Manchester and Ashton-under-Lyne again, not to mention to catch with friends and family and of course do a bit of driving! I haven't been driving for more than a year now since I have been in Taiwan, feels like my legs have gone! We're taking a lot pineapple cakes, which Taiwan is famous for, back to friends and family in UK, and some other gifts too. On the way back, we'll bring back all sorts of stuff to Taiwan, so another post on that when I get back. Not sure whether I'll be able to get online as often, but will try my best to keep my blog updated as much as possible while I am over in UK. My grand parents also arrived in UK from Hong Kong to attend my brother Jimmy's wedding. So time would probably be spent travelling around and take to places to see and have fun. Don't worry, as always, I'll be taking pictures! It will be Amelie's first time visit to UK...