Windows text encoding

Hi all,
I’m currently using a text file to build some UI stuff in cinder and I’m having some problems with the string encoding settings in windows ( mac is fine )

Something like this:
If the text file is saved with UTF-8 encoding, Cinder creates and displays the glyphs with no problem. But the c++ std::string part is wrong, the word “ÁUDIO” turns “ÁUDIO”, I cannot use it as a key in a std::map for example.

But if I save the file Western ISO 8859-1 ( Unicode ) the std::string is fine, but I get an Exception like the one bellow if I TextLayout::addCenteredLine()

Any ideas how to solve this?

thanks!

Hi,

Could you please explain why it cannot be used in an std::map? I can see the problem in presenting it as a human readable string.

Bala.