🕉️

Unicode in windows console (C/C++)

#include <iostream>
#include <io.h>
#include <fcntl.h>

int main() {
    _setmode(_fileno(stdout), _O_U16TEXT);
    std::wcout << L" test \x263a\x263b  Hello World!";
    return 0;
}

Warning : You need to use a Unicode-16 encoded file source