title: How do I make Python 3.4 c_char_array read strings as two bytes?
body: <p>I'm using pypyodbc with Python 3.4 on Ubuntu 12.04.</p>
  
  <p>I'm trying to get the column names, but something is a little wonky. What is coming back is just the first character as a byte, like this:</p>
  
  <pre><code>(Pdb) Cname.value
  b'T'
  </code></pre>
  
  <p>The thing behind the scenes is a ctypes char array:</p>
  
  <pre><code>(Pdb) Cname
  &lt;ctypes.c_char_Array_1024 object at 0xb6a1ad1c&gt;
  </code></pre>
  
  <p>But if I look at the raw value:</p>
  
  <pre><code>(Pdb) Cname.raw
  b'T\x00Y\x00P\x00E\x00_\x00N\x00A\x00M\x00E\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
  </code></pre>
  
  <p>you can see that the value <code>TYPE_NAME</code> is separated by <code>\x00</code>. </p>
  
  <p>So it appears to me that what's happening is something (ctypes?) is reading that first <code>\x00</code> as the null terminator for the string instead of part of the characters.</p>
  
  <p>What can I do to modify the way ctypes is being used so that it will read the entire string? Everything else seems to work fine, it's just the descriptions that are wonky.</p>