What are Windows code pages?

Posted by Mike D on Stack Overflow See other posts from Stack Overflow or by Mike D
Published on 2010-04-06T01:42:27Z Indexed on 2010/04/06 3:03 UTC
Read the original article Hit count: 447

I'm trying to gain a basic understanding of what is meant by a Windows code page. I kind of get the feeling it's a translation between a given 8 bit value and some 'abstraction' for a given character graphic.

I made the following experiment. I created a "" character literal with two versions of the letter u with an umlaut. One created using the ALT 129 (uses code page 437) value and one using the ALT 0252 (uses code page 1252) value. When I examined the literal both characters had the value 252.

Is 252 the universal 8 bit abstraction for u with an umlaut? Is it the Unicode value?

Aside from keyboard input are there any library routines or system calls that use code pages? For example is there a function to translate a string using a given code table (as above for the ALT 129 value)?

© Stack Overflow or respective owner

Related posts about character-encoding

Related posts about Windows