Re: I/O with Spanish words

From: Phlip (phlip_cpp_at_yahoo.com)
Date: 06/04/04


Date: 04 Jun 2004 16:53:11 EDT

solartimba wrote:

> I need to read Spanish words from a file and print them to the screen.
> Is there a C++ header file that allows foreign words? Is the problem
> C or the OS? (I am the only person that will use this program)

What problem are you having?

At a guess, your "screen" is your console, which uses a different character
set than MS Windows proper (or similar GUIs). The Desktop uses ISO 8859-1
Latin, where most Spanish is written, and the console (or "Command Prompt")
uses IBM Code Page 437. Here's my console's mode:

>mode

Status for device CON:
----------------------
    Lines: 300
    Columns: 120
    Keyboard rate: 31
    Keyboard delay: 1
    Code page: 437

A forum that discusses internationalization will know how to the 'mode'
command built-into CMD.EXE to change the code page. This is probably a
frequently asked question, so start with Google.

-- 
  Phlip
  http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces


Relevant Pages

  • Re: Restart after windows update fails
    ... Boot to the console and press enter when asked for the password. ... Try system restore from command prompt. ... some tools and info here for recovering lost passwords. ...
    (microsoft.public.windowsxp.perform_maintain)
  • DWMX comes up for .net executable
    ... Then went to the console (command ... Well when I go to execute the program Dreamweaver opens up in the code ... of the picture and my program to execute through the command prompt ...
    (microsoft.public.vsnet.setup)
  • Re: Console and Form together in one application based on EXE parameters
    ... application opens a second console window, ... If the program was started from a command window, then AttachConsole will find that window and use it. ... AttachConsole will return False and AllocConsole will create a new window. ... The program is able to write to the parent's console window, but since the command prompt executed the program asynchronously, it still prompts for additional commands. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Console app to exit itself?
    ... command prompt. ... > The message actually appears in the console window after it has completed. ... >>> How can I run it so that it is hidden and once it has completed exits ... >> Set the ProcessStartInfo WindowStyle property to ...
    (microsoft.public.dotnet.languages.csharp)