ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.71k stars 375 forks source link

Implement typing with extended character support for more languages #6207

Open Branikolog opened 1 year ago

Branikolog commented 1 year ago

Preliminary checks

Describe the problem requiring a solution

image Only English is used while creating player's name.

Describe the possible solution

Since fheroes2 supports multiple languages, it would be nice, if players could type their names using the language supported by the engine.

Additional info

No response

zenseii commented 1 year ago

Just adding that this will probably only be possible once we add UTF-8 encoding support. There should be an issue for that.

undef21 commented 1 year ago

I think sphinx's riddle dialog has the same issue. Some localized maps can have non-ASCII answers. AFAIK windows versions of OG have support of national encodings but dos versions (e.g. French) haven't. In dos versions the game filtered user input and allowed only ASCII chars.

zenseii commented 1 year ago

Basically this is relevant for any place where the user is asked to type, so even writing save game names.

I'll change the issue title to reflect this.

667bdrm commented 1 year ago

On this map sphinx dialog allow enter only digits. English or Russian letters typing does not change the field. Looks like this map file use Windows 1251 charset for text.

Ubuntu 20.04.5 LTS

image

Горы Альтерак.zip