Mail Archives: djgpp/2000/03/27/13:32:03
Damian Yerrick wrote:
> >Damian Yerrick wrote:
> >
> >> >ASCII only goes up to 0x7F. The A in ASCII stands for American. Americans
> >> >don't know about accents, at least not back in the days of teletype
> >> >machines..:(. There are no accented characters in ASCII. Unamerican
> >> >characters may be represented by multi-byte sequences, hence they are out of
> >> >range of char, which is one byte long.
> >>
> >> But what about iso-8859-1, which OP is probably trying to refer to?
> >> It uses the negative characters (char)-96 to (char)-1 to store
> >> precomposed characters that are commonly used in Western writing.
> >Those 'negative chars' are just the 2's compliment of normal unsigned char's.
> >So they correspond to char's with the 8th bit set.
> So how do you get them into a string? OP was trying to use escape
> syntax to get chars with the 8th bit set, but the compiler was
> complaining.
I haven't tried it, but I don't see why any 2 digit hex value for a char shouldn't
work.
--
(\/) Rolf Campbell (\/)
- Raw text -