1
General / Re: Unicode encoding
« on: May 05, 2014, 05:18:17 am »
Well . . . i fell into the trap, thank you it's now working.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
event.text.unicodeto retreive it, but after that I don't know how to convert it into ascii.
std::string s = "";
//event keypressed
s += event.text.unicode;
//In my rendering thread
sf::Text text;
text.setString(s);
window->draw(text);