1
General / Re: Utf-8 coding problem
« on: February 03, 2018, 08:28:03 pm »
Hi,
thanks for quick ansver.
In Slovak language, š character for example do have ascii code 154. It is a locale dependant thing, for example in english ascii table is 154 some other character.
I thought, that toansi method will extract from utf-32 string all characters supported by the local ansi table and insert them to an std::string.
For example, if SF::String does contain 353 character (š in utf-32), there would be std::string with 154 character as a result of toansi.
Or it isn't what toansi method does? I need conversion like this to manage non-utf modules of the program, like tts synthetiser, but also saving to and loading from files, used by other programs like g++ for example.
Thank you in advance.
Best regards
Rastislav
thanks for quick ansver.
In Slovak language, š character for example do have ascii code 154. It is a locale dependant thing, for example in english ascii table is 154 some other character.
I thought, that toansi method will extract from utf-32 string all characters supported by the local ansi table and insert them to an std::string.
For example, if SF::String does contain 353 character (š in utf-32), there would be std::string with 154 character as a result of toansi.
Or it isn't what toansi method does? I need conversion like this to manage non-utf modules of the program, like tts synthetiser, but also saving to and loading from files, used by other programs like g++ for example.
Thank you in advance.
Best regards
Rastislav