简体   繁体   中英

using UTF8 in sfml

I am trying to create something with SFML.

I want to detect what character does the user type and to store it into a variable. Then I want to display it with the sf::Text. It sounds easy but I want to use cyrillic.

There is a whole paragraph called

How to avoid problems with non-ASCII characters?

in the tutorials section of SFML on Texts and fonts ( Click here to get there ).

When you follow it, you should be fine.

The sf::String class accepts both UNICODE and ANSI texts as constructor parameters, so you should be fine whatever input you get.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM