Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Project Character Set in JetBrains Clion

I can change Project Character Set to Unicode or to Multi-Byte in Microsoft visual studio like what is shown in the picture.

enter image description here

But, is the same thing possible in clion?

like image 448
ilw Avatar asked Oct 17 '22 05:10

ilw


1 Answers

All that this setting does is automatically set a preprocessor symbol. Either /D UNICODE or /D _MBCS or nothing.

It is the kind of setting you decide on very early and never change again. With a bias towards Unicode, it doesn't make much sense to write C++ code and intentionally slow it down by using the Ansi adapter functions. Visual Studio basically only has this setting because there are so many codebases out there that started life 20+ years ago, back when character sets still seemed a practical idea and Win9x was still popular. Those days are over.

like image 102
Hans Passant Avatar answered Nov 01 '22 09:11

Hans Passant