I searched a lot, but couldn't find anything:
unsigned int unicodeChar = 0x5e9;
unsigned int utf8Char;
uni2utf8(unicodeChar, utf8Char);
assert(utf8Char == 0xd7a9);
Is there a library (preferably boost) that implements something similar to uni2utf8?