What makes you think your system uses extended ASCII? In latin1, 'ä' is 228. But why are you worried about the code for the character in the first place?