I have an array consisting of unicode code points
unsigned short array[3]={0x20ac,0x20ab,0x20ac};
I just want this to be converted as utf-8 to write into file byte by byte using C++.
Example: 0x20ac should be converted to e2 82 ac.
or is there any other method that can directly write unicode characters in file.
With std c++