A
A
Alexzatey2020-06-06 19:29:50
Java
Alexzatey, 2020-06-06 19:29:50

When running the code in Idea, it does not show Russian characters. What should I do?

Linux, Fedora 32
5edbc430a0d13497658624.png
5edbc5731d657889911178.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2020-06-06
Hasanly @azerphoenix

Type in a terminal
echo $LANG
or
echo $LC_CTYPE
see this output:
ru_RU.UTF-8
Linux console uses utf-8 by default.
Use utf-8
If you need cp1251 then switch to it. I won’t say if there is a command for this, but the configs can be edited,
sudo nano /var/lib/locales/supported.d/local
replace the encoding here .... As for me, it’s better to use Utf8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question