title: How can I set a strings value from hex?
body: <p>for example the text "Book of Summoning"s hex value is "42 6F 6F 6B 20 6F 66 20 53 75 6D 6D 6F 6E 69 6E 67"
  so i would want to be able to set the variable as if i set it like string a = "book of summoing";
  but using the hex value.</p>
  
  <p>With input like this or something similar.
      std::string hex = "42 6F 6F 6B 20 6F 66 20 53 75 6D 6D 6F 6E 69 6E 67";</p>
  
  <p>I want to set a string variable with it so that the string will look like "Book of Summoning";</p>
  
  <p>As if I were to look at this variable in debug mode, each character of the string would have one of these spaced hex values. But of course printing the string would print "Book of Summoning".</p>
  
  <p>if i just new how to do it with one character i could build such a function. </p>
  
  <p>OR if you can do with with decimal instead of hex that will work for me also, as ill just make a function to convert from hex to dec</p>
  
  <p>EDIT:
  in the debug mode i can see that the string hex[0] first char 'B' has a 66 beside it, which im guess is the dec value for that character. if i new how to get that value or set a string by setting that value i could do all this but i dont know if i can do that.</p>