When a user has special characters in his username (e.g. "Sébastien", notice the "é"), and he chooses to save an image under a path which contains the username (e.g. C:\Users%USERNAME%\Desktop under Windows), sf::Image::saveToFile() fails with the error: "Failed to save image FILENAME" (file ImageLoader.cpp, line 261, SFML 2.1).
It would be good if sf::Image::saveToFile() was overloaded in order to accept an std::wstring instead of an std::string.
When a user has special characters in his username (e.g. "Sébastien", notice the "é"), and he chooses to save an image under a path which contains the username (e.g. C:\Users%USERNAME%\Desktop under Windows), sf::Image::saveToFile() fails with the error: "Failed to save image FILENAME" (file ImageLoader.cpp, line 261, SFML 2.1).
It would be good if sf::Image::saveToFile() was overloaded in order to accept an std::wstring instead of an std::string.