y0014984 / Advanced-Equipment

Advanced Equipment is a Arma 3 mod, that brings equipment to life, like laptops and lamps.
Other
25 stars 9 forks source link

Character Length > 1 for some symbols in armaOS terminal #335

Open y0014984 opened 1 year ago

y0014984 commented 1 year ago

I encountered a problem while creating new keyboard layouts for armaOS terminal. Some symbols, that could be entered like the "€" symbol, need more then one backspace keypress to delete them. Some symbols need 2 and some 3 keypresses.

This looks like that the encoding of the keys is UTF-8, which in some cases is represented by 1 8-bit character, and in some cases by 1 16-bit character, especially if the character is not part of the ASCII alphabet table. For example the german "ü" sign needs two backspace presses, the "€" sign needs 3 backspace presses.

Perhaps we can somehow work around this problem if SQF provides text functions to work around that behavior.

y0014984 commented 8 months ago

This is still a problem, even with the change to the invisible input field.