From: bzinger AT iName DOT com (Michael A. Benzinger) Subject: Re: accent 18 Apr 1998 23:41:13 -0700 Message-ID: <3.0.3.32.19980418212211.0091fd60.cygnus.gnu-win32@pop.flash.net> References: <3 DOT 0 DOT 1 DOT 32 DOT 19980417111649 DOT 006b1eb4 AT pop DOT rj DOT sol DOT com DOT br> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit To: Eduardo Fernandes , gnu-win32 AT cygnus DOT com Eduardo, When you type your code in you using the ANSI character code page. When you output to the console, the ASCII character set is used. The characters, as you have noticed, do not correspond to the same hexadecimal values. The way you get around this when your using MS Visual C++ is to call the CharToOem and OemToChar for converting between the two character sets. Technically the code page used by Windows is tagged MS-ANSI, or ANSI Code Page 1252 for American English and most European languages. The console uses IBM Code Page 437, at least on my system. If you want to write the proper character codes out to the console window, you'll either have to write a conversion routine or type them in as strings with the proper codes. Regards, Mike Benzinger At 11:16 AM 4/17/98 -0300, Eduardo Fernandes wrote: >I am just starting in the programing language C++ and I have a problem that >I can´t solve. Since I am Brasilian and the Portuguese language have >accents like " á ", " ç " and " ã " I am using these in my C++ fonts. The >problem is that when the software runs the texts doesn´t has any accent and >instead there are strange symbols ascii. >What can I do to my program run with all the accents? >Thank´s for the help >Eduardo Fernandes - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".