CingProject/Cing — Issue #11: Cing::String, proper UTF conversion from cp1252
Author: f0ster
Created: 2012-02-15 17:08:45+00:00
State: open

I am not sure about other compilers, but when compiling with visual studio, characters are encoding with cp1252. There are several characters in cp1252 that do not convert to UTF8 with the bitshifting technique that is currently used in Ogre::UTFString ConvertToUTF( const std::string& String).

A look up table could be implemented specifically for cp1252->UTF8 (http://www.prismnet.com/~jdawson/cp1252.html
), but this isn't an ideal cross platform solution. I suggest looking into something like libicu (http://site.icu-project.org/) for a more global solution.