On Thu, 27 Feb 2003 14:27:42 -0000, in comp.lang.c, "Allan Bruce" wrote: Something off-topic for comp.lang.c >Hi there, >I have written a very simple game to played on a command line. I started >writing (havent finished quite yet) in Windows and I thought I would use >some of the extended ASCII characters to display some information. Bzzzt! Wrong. There's no such thing as "extended ASCII". There's ASCII, which is a 7bit encoding for characters, and there's other encoding schemes, some of which use character encodings in the same range as ASCII for the same glyphs as ASCII. >Everything was fine until I tried to compile my program in Linux, everything >after ASCII 127 was a ?. As it should be. ASCII ranges from 0 to 127 in value; there _are_ no character encodings past 127 in ASCII. > Even worse, under Solaris, there was extra >characters after 127 but these differed from the ASCII extended set. As above, there aint no such thing as "the ASCII extended set". >So my question is, is there a way to set the program to use the extended >ASCII character set? As above, there aint no such thing as "the extended ASCII character set". If you want to display non-ASCII characters, you have to _choose_ a non-ASCII characterset (actually, an non-ASCII encoding) to display them with. This is an os-dependant, environment-dependant operation that has nothing to do with the C language (the topic of posts here in comp.lang.c). I suggest that you ask your question in a newsgroup (or newsgroups) that take your os as their subject matter. I'd also suggest that you do some reading on the issues surrounding character encoding and charactersets, because you're going to run into other problems as the platform's character encoding methods change. Lew Pitcher, Information Technology Consultant, Toronto Dominion Bank Financial Group (Lew_Pitcher@td.com) (Opinions expressed are my own, not my employer's.)