cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.24k stars 7.06k forks source link

WinRT Unicode failure #12608

Open kmbriedis opened 9 years ago

kmbriedis commented 9 years ago

Cocos2d-x is incorrectly converting from Unicode to UTF-8 in WinRT and therefore apps are crashing for users having username with non-Latin symbols.

E.g., for Windows 8.1 user with name "Māris", writable path should be "C:/Users/Māris/AppData/.../LocalState/" But FileUtils::getInstance()->getWritablePath(); is returning "C:/Users/M\x1ris/AppData/.../LocalState/" instead, which is invalid file path.

With this bug it is not possible to store any user data. UserDefault class is not working for the same reason

stammen commented 9 years ago

@kmbriedis We will look into this.