Dev-Cpp icon indicating copy to clipboard operation
Dev-Cpp copied to clipboard

Doesn´t save projects in ANSI

Open Geravicast opened this issue 4 years ago • 3 comments
trafficstars

When I'm working with special characters in spanish (á,é,í,ó,ú, ¿), the program asks to save it in UTF-8 "so as not to lose the characters" but it doesn't work and changes the characters, even if I try to save the file in ANSI, changes de characters, can someone help me?

Thanks.

Geravicast avatar Apr 10 '21 20:04 Geravicast

I have the same problem: I can´t program with spanish texts.

I have tried with #include <locale.h> and setlocale(LC_CTYPE, "Spanish"); I also tried with #include and using namespace std; I even tried with \x + hexa ASCII codes.

Nothing works. Instead of "menú", I get "menú".

I'm using Embarcadero Dev-C++ 6.3. in a Windows 10 project. I don´t know if the problem is about configuring compiler, or about some include I need, UNICODE, WinApi...

Please, help us...

AlanRulf avatar Apr 29 '21 15:04 AlanRulf

Hello

I have similar problem with Brazilian Portuguese characters. messages in console programs do not match what is in the program. I've been testing and noting that:

  • When the source file is saved with ANSI include/selocale encoding, it produces the expected result;
  • Using ANSI, every code change when saved triggers encoding correctness checking - if I answer not to switch to UTF-8 there seems to be no loss and the console prints match what I expect
  • I was looking at the source code of Embarcadero DEV-C++ and it called my attention to the functionality where in the method function TEditor.UpdateEncoding in the file Editor.pas it could be defined that the encoding correction would never occur (enum sceNever). For my use, at least for now, it would be reasonable to use the editor always with ANSI encoding and have the message production on the console going as expected.

I looked for how to disable the encoding correction but I couldn't find it, it is possible to perform this configuration / user definition in version 6.3

Grateful for the attention

Douglas

DouglasKellermann avatar Sep 06 '21 04:09 DouglasKellermann

Can anyone provide example file/s and brief instructions to recreate the problem please?

pmcgee69 avatar Nov 21 '21 12:11 pmcgee69