I would like to know how to convert a byte array to string given an encoded scheme e.g
string Convert2Str(byte* b, UTF32);
string Convert2Str(byte* b, UTF7);
etc
I would like to know how to convert a byte array to string given an encoded scheme e.g
string Convert2Str(byte* b, UTF32);
string Convert2Str(byte* b, UTF7);
etc
There's no standard c++ way to do so.
Some 3rd party libraries are available to convert encodings (e.g. UTF8-CPP).
Note: byte
isn't a standard c++ type either. You probably meant uint8_t
.