Trying to display russian text on EV3 screen (in console mode)
I installed and configured console-cyrillic package and also generated ru_RU.UTF-8 locale.
To see russian text when outputting it in console on EV3 screen.
Only those characters that have non-cyrillic analogues (Like capital T, a and o) outputted correctly, characters like 袞 and 携 looked like rectangle symbols.
It works as intended in SSH.
EV3 brick, 2017-06-09 ev3dev image
Did you select the font using the setfont command?
Some relevant man pages:
Setting font to one of the unicode fonts in /usr/share/consolefonts/ fixed the cyrillic characters but it also resulted in empty spaces being displayed as zeros (i.e. clear fills screen with zeros) or other symbols, depending on font
I'm not sure what could be causing that.
What kernel version are you using? There seems to be a problem in ev3dev-stretch (4.9.x kernel).
Meh... It looks like the in-kernel fbcon doesn't support unicode. There was a patch a while back, but it looks like it was never taken to completion.
:tada: :ru: :sparkles:
I finally figured it out. Install the console-cyrillic package...
sudo apt update
sudo apt install console-cyrillic
Set the locale to a non-UTF8 locale. I tested with ru_RU.ISO-8859-5, but there is also ru_RU.CP1251 and ru_RU.KOI8-R. Alternatively, you can just generate one of these locales and leave the default as UTF8, in which case you will need to export LANG=ru_RU.ISO-8859-5 in the virtual console.
sudo dpkg-reconfigure locales
Then, in the virtual console...
unicode_stop
setfont /usr/share/console-cyrillic/alt_8x14.psf -m /usr/share/console-cyrillic/iso-8859-5.screenmap
The font can be any of the .psf files in /usr/share/console-cyrillic and the -m argument should match the locale you chose.
It looks like there are some fonts that ship with ev3dev as well, so installing the console-cyrillic package is not necessary.
unicode_stop
setfont CyrSlav-Fixed13 -m /usr/share/consoletrans/ISO-8859-5.acm.gz
Can confirm that this worked, thanks!