CLion 2018.3 Help

Output Encoding

CLion creates files using the IDE encoding defined in the File Encodings page of the Settings(Ctrl+Alt+S) dialog. You can use either the system default or select from the list of the available encodings.

By default, this encoding affects consoles output. To set the encoding for console output different from the IDE setting, follow the below instruction.

Set up encoding for the console output

Open <CLION_HOME>/bin/clion.exe.vmoptions or <CLION_HOME>/bin/clion.vmoptions for editing and add the following line at the bottom:

-Dconsole.encoding=<encoding name>

For example: -Dconsole.encoding=UTF-8

Open Info.plist located in /Applications/, find the tag <key>VMOptions</key>, and modify it as follows:

<key>VMOptions</key> <string>-Xms16m -Xmx512m -XX:MaxPermSize=120m -Xbootclasspath/p:../lib/boot.jar -ea -Dconsole.encoding=<encoding name> </string>

Last modified: 7 December 2018

See Also