title: How to convert a byte array to a string
body: <p>I need to produce a string of bytes from a list of integers (in order
  to send them to a C program via a socket connection).  I'm trying to replicate some Python code that uses the 'struct' module.  The Python code below produces this output:</p>
  
  <pre><code>import struct 
  struct.pack('HHHH', 1, 2, 3, 4)
  --&gt;
  '\x01\x00\x02\x00\x03\x00\x04\x00'
  </code></pre>
  
  <p>The equivalent Lisp code produces the following output:</p>
  
  <pre><code>(ql:quickload :pack)
  (pack:pack "HHHH" 1 2 3 4)
  --&gt;
  #(1 0 2 0 3 0 4 0)
  </code></pre>
  
  <p>How can I convert this array to a string format with the same representations as produced by the Python code?</p>
  
  <p>Many thanks,</p>
  
  <p>David</p>