Need something small and portable. Currently looking at UTF8-CPP but thought that I'd reach out for other suggestions too.
Cheers.
Need something small and portable. Currently looking at UTF8-CPP but thought that I'd reach out for other suggestions too.
Cheers.
UTF-8CPP it is, just want to mark this question as done with. Thanks for all the help guys :)
ICU is an "International Components for Unicode" - portable and open source.
Haven't used it myself, so I can't say how good it is, but I know others that do.
Ironically enough, the best/easiest/most robust way is to wrap Unicode-aware stdlib (C) functions like setlocale(), wprintf() and mbstowcs in your own, application-level) C++ classes. The APIs are portable, and they've been in use for many years.
A few links: