I am trying to strip accents from a string using the boost local library.
The normalize function removes the entire character with the accent, i only want to remove the accent.
è -> e for example
Here is my code
std::string hello(u8"élève");
boost::locale::generator gen;
std::string str = boost::locale::normalize(hello,boost::locale::norm_nfd,gen(""));
Desired ouput : eleve
My Output : lve
Help please
Aucun commentaire:
Enregistrer un commentaire