[Dev-C++] =?iso-8859-1?Q?Re:_=5BDev-C++=5D_=5BDev-C++=5D=BFC=F3mo_podr=E9_escribir_?= =?iso-8859-1?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elias P. <eli...@ao...> - 2001-11-08 18:19:22
|
> I have a problem with this compiler: When I try to write in the output > a character with accent or an ñ or ¿ or ¡, the (at this moment > console) program writes other character, a phi for í, beta for á, > more-or-less for ñ... I think this problem will go away if you don't write to the console, but to a window. Probably the console uses another codepage (for ASCII characters > 127) as dev-c++ (or any other windows editor, it seems). I don't know how you can use these characers in a console, but probably you will have to translate them to some old DOS codepage. Maybe you can find info at microsoft. (http://msdn.microsoft.com) ... > So in Dev-C++ 5, it would be nice to make a compiler with support for > international characters in an easy way, avoiding the need of > questioning how to do it (support for unicode). (Or make it work fine). I never used unicode myself, but I'm almost sure that .c/.cpp source files are always ASCII, and not unicode - so writing unicode directly inside the source code can't work. You have to write your unicode strings with an editor supporting unicode (i'm not sure if it could be integrated into dev-c++), and then you can display them in your program, e.g. by using the Win32 API. -- Elias Pschernig |