colobot icon indicating copy to clipboard operation
colobot copied to clipboard

Program editor shows "?" instead of Cyrillic letters

Open pestoffne opened this issue 3 years ago • 4 comments

Colobot v0.1.12-alpha Ubuntu 20.04

Steps to reproduce

  1. Switch system keyboard layout to Russian (Russian Federation)
  2. Open in-game program editor
  3. Write few letters
  4. Questions marks and squares appears instead of Cyrillic letters (see picture)

Снимок экрана от 2021-05-16 01-58-30

pestoffne avatar May 15 '21 19:05 pestoffne

So, I think the charset does not support any symbols except english letters, numbers and special symbols

Legoveed avatar May 19 '21 15:05 Legoveed

Program editor can display local letters, see the first code line in the screenshot. Also if I write text file in UTF-8 placed in colobot's programs directory and then load it in program editor it displays fully correctly. The bug is that program editor adds exactly one byte for each key pressed. But some UTF-8 symbols (like Cyrillic letters) uses 2, 3 or 4 bytes.

pestoffne avatar May 21 '21 14:05 pestoffne

I think issue topic must be reanmed to "Cyrillic input absolutley not work in game!" I test 2.0 version under win10 and characters can't be entered in Russian. I think it's because of UTF 8 encoding. At the same time, the symbols are displayed normally for yet exist files.

X64E avatar Dec 02 '21 14:12 X64E

@Legoveed

So, I think the charset does not support any symbols except english letters, numbers and special symbols

If that about keyboard input. This is true. But code editor support any chars.

изображение

Z128A avatar Dec 07 '21 09:12 Z128A