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.74k stars 378 forks source link

Implement typing with extended character support for more languages #6207

Open Branikolog opened 2 years ago

Branikolog commented 2 years 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 2 years 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 2 years 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 2 years 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