-4

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

1 Answers1

0

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.

πάντα ῥεῖ
  • 1
  • 13
  • 116
  • 190