This code works on windows to enable unicode 16 in the console (in order to write) : it uses io.h to work
_setmode(_fileno(stdout), _O_U16TEXT);
On linux I have tried including sys/io.h to make it work but it is still giving me errors :
_fileno was not declared in this scope
_O_U16TEXT was not declared in this scope
_setmode was not declared in this scope
I have searched on the internet and I wasn't able to find the solution, maybe you could help me with this!
Do you need more information?
Os : Windows 10 and raspberry pi 2b running rasbian with no gui
Compiler : g++
Thanks