title: PDO with firebird throws "�" ​when there is a "ñ" letter
body: <p>My table:</p>
  <pre><code>+--------+----------+
  | U_COD  |  U_NAME  |
  +--------+----------+
  |   01   |  Daniel  |
  +--------+----------+
  |   02   |  Ñandu   |
  +--------+----------+
  |   03   |  Pañ     |
  +--------+----------+
  </code></pre>
  <p>I am connecting and doing a simple query to my firebird database like this:</p>
  <pre><code>$host = 'firebird:dbname=my/dir/db_test.gdb;charset=UTF8';
  $password = 'mypass';
  $username = 'myuname';
  
  try{
    $db = new PDO($host, $username, $password);
    $db-&gt;setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
  }catch(PDOException $e){
    echo &quot;Failed: &quot; . $e-&gt;getMessage();
  }
  
  $getData=$db-&gt;prepare(&quot;SELECT * FROM T_TEST ORDER BY U_NAME ASC&quot;);
  $getData-&gt;execute();
  $arrData=$getData-&gt;fetchAll(PDO::FETCH_ASSOC);
  echo json_encode($arrData);
  </code></pre>
  <p>But when I run the file, all the values ​​that in my database include some &quot;ñ&quot; letter appear as null, like this:</p>
  <pre><code>[
      {&quot;U_COD&quot;:&quot;01&quot;,&quot;U_NAME&quot;:&quot;Daniel&quot;}, 
      {&quot;U_COD&quot;:&quot;02&quot;,&quot;U_NAME&quot;:null},
      {&quot;U_COD&quot;:&quot;03&quot;,&quot;U_NAME&quot;:null}
  ]
  </code></pre>
  <p>I would like to know what I'm doing wrong, let me know if you need any other details from my firebird database.</p>
  <p><strong>EDIT</strong></p>
  <p>a <code>var_dump($arrData)</code> shows the values but with a &quot;�&quot; when there should be a &quot;ñ&quot; letter:</p>
  <pre><code>array(3) {
    [0]=&gt;
    array(2) {
      [&quot;U_COD&quot;]=&gt;
      string(2) &quot;01&quot;
      [&quot;U_NAME&quot;]=&gt;
      string(6) &quot;Daniel&quot;
    },
    array(2) {
      [&quot;U_COD&quot;]=&gt;
      string(2) &quot;02&quot;
      [&quot;U_NAME&quot;]=&gt;
      string(5) &quot;�andu&quot;
    },
    array(2) {
      [&quot;U_COD&quot;]=&gt;
      string(2) &quot;03&quot;
      [&quot;U_NAME&quot;]=&gt;
      string(3) &quot;Pa�&quot;
    }
  }
  </code></pre>