0

Currently I do the following in PHP to convert from UTF-8 to ASCII, but with the UTF-8 characters as HTML encoded. For instance, the German ß character would be converted to ß.

$sData = mb_convert_encoding($sData, 'HTML-ENTITIES','UTF-8');

In GCC C++ on Linux, what is the equivalent way to do this?

Actually, I can also take an alternative form like, instead of ß, the &#xNNN; format will do.

Volomike
  • 23,743
  • 21
  • 113
  • 209

0 Answers0