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

Going Japanese

After a bit of a battle in the bathroom with Amelie, she chose to go Japanese tonight. Chien took some pictures, and I thought I'd like to share them. Enjoy!

Another Video - Amelie Causing Havoc

Just trying out YouTube again, this time with a video of Amelie making a mess when she was about 9 months old. We just recently arrived in Taiwan then and Amelie had starting to walk and become more physical. Another thing which crossed my mind is, whether its a good idea to upload family videos to an internet portal like YouTube which can be accessed and seen by everyone...hmm...what do you think?

Gaming Addiction

Addiction to games? Want to kick the habit or control it? Well a clinic has been set up in Amsterdam that offers treatment to people who are addicted to gaming. Can anyone be that addicted? Well the BBC's article mentioned a patient called Tim. He has four separate televisions, one for each gaming console and a notebook to do online gaming. He spends 17 hours a day playing games and pees in a bottle because he can't bear to pull himself away from the gaming screen. Tim, didn't you know that pressing the "start" button actually pauses the game? Apparently there was a man from South Korea who died after playing online games for 50 hours non-stop. Man, that's got to be overkill. Can anyone be that addicted to games? I like to play games too, but I don't think I can ever take to the level which this guy Tim can do it. Also, he must have a lot of money too. Are you addicted to games and gaming?