mercredi 4 mai 2016

conversion facets in gcc 4.8.1

I have a problem similar to utf-8 encoding a std::string

i.e. I am receiving a std::string from a third party such as "vodeæe Č č" and I use a drawing api which takes in a const char* to a utf-8 encoded string. So the api only shows something like vode?e ? ?.

Now following the answers on this question when i try to include

#include <codecvt> 

i get the error as :

fatal error: codecvt: No such file or directory
#include <codecvt>

When i serched for this error as per this SO link the libstdc++ doesn't support conversion facets. but when i check C++11 support status page it shows :

22.5 Standard code conversion facets Y

the gcc version i am using is :

gcc (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1

Are conversion facets not supported in gcc 4.8.1 ?

Aucun commentaire:

Enregistrer un commentaire