title: Sqlsrv PHP driver and UTF-8 encoding issue with error messages
body: <p>I'm using the Microsoft sqlsrv driver with UTF-8 encoding (by passing CharacterSet 'UTF-8' to sqlsrv_connect). This works fine for the actual data stored in the database but I found a problem with non-English text returned by sqlsrv_errors. When using a different language for SQL Server (e.g., <code>SET LANGUAGE German</code>), I found that the returned error messages are not UTF-8 encoded. This is what sqlsrv_errors() returned for a 8152 error:</p>
  
  <pre><code>[Microsoft][SQL Server Native Client 10.0][SQL Server]Zeichenfolgen- oder Bin?rdaten w?rden abgeschnitten.
  </code></pre>
  
  <p>And as hex (only the two invalid words):</p>
  
  <pre><code>B i n ? r d a t e n  w ? r d e n
  42696e8472646174656e 77817264656e
  </code></pre>
  
  <p>So, the problematic characters are encoded as 84 (actually U+00E4) and 81 (actually U+00FC) which I can't relate to any encoding. Any help would be much appreciated.</p>
  
  <p>Thanks,
  Tobias</p>