Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.53k stars 276 forks source link

No mapping for the Unicode character exists in the target multi-byte code page Address : 0x0014206D #222

Open ksio89 opened 2 years ago

ksio89 commented 2 years ago

I'm trying to open some C++ source files from a programming textbook companion CD, but DevC++ throws me this message:

DevC++ crash

It seems there's not support for characters in my language (Brazilian Portuguese), like accute accents. If I paste the code and export it as a cpp source file in Notepad++, DevC++ opens and compiles it without errors, but doesn't render the non US/ANSI characters correctly. In the provided source file, "salário" is output as "sal├írio" in the program. Here's the file:

https://drive.google.com/file/d/1MltK2dLY_ElUIMuWM8xlO8i_fr6yEdns/view?usp=sharing

Hecate2 commented 1 year ago

Tools -> Editor Options -> New Document Encoding: UTF-8. And make sure the opened file is also using UTF-8.

flopezre commented 1 year ago

Use this version: https://github.com/royqh1979/Dev-CPP