How to Change Project Character Set in JetBrains Clion

I can change the project character set to Unicode or Multi-Byte in the Microsoft visual studio, as shown in the picture.

enter image description here

But is this possible in Klion ?

+5
source share
2 answers

Everything that this parameter does automatically sets the preprocessor symbol. Either /D UNICODE , or /D _MBCS or nothing.

This is the setting that you decide very early and never change. With a bias towards Unicode, it makes no sense to write C ++ code and deliberately slow it down using the Ansi adapter functions. Visual Studio basically has this option, because there are so many codebases that started life 20 years ago, when the character set still seemed like a practical idea, and Win9x is still popular. Those days are over.

+1
source

In CLion, you can change the encoding of the project / file in the section:

File β†’ Settings β†’ Editor β†’ File Encoding .

CLION change coding example

For more information you can read: https://www.jetbrains.com/help/idea/configuring-individual-file-encoding.html

+1
source

Source: https://habr.com/ru/post/1271964/


All Articles