Hello peeps
can someone help me please?
I have tried 5000 ways, but at no point can I do this.
I have a string, which has been encoded.
Basically I want to convert the string to a hex value to confirm it has worked (i am playing around with some encoding)
here is my code:
std::string compressed_string2;
if (false ==
encoder_table2.Encode(test_string2,compressed_string2))
{
std::cerr << "Error compressing string 2" << std::endl;
exit(1);
}
what i need to do is to print the result of that code to a hex value.
Can someone please point me in the right direction?
I have tried to put the string into a QByteArray, then converting that into hex, but I keep getting some error regarding the char is no good.
Can someone please help me??
Bookmarks