title: pdo's error with oracle
body: <p>When I use PDO to connect to Oracle DBMS,I got this problem:</p>
  
  <blockquote>
    <p>SQLSTATE[HY000]: OCIEnvNlsCreate: Check the character set is valid and
    that PHP has access to Oracle libraries and NLS data
    (ext\pdo_oci\oci_driver.c:619).</p>
  </blockquote>
  
  <p>I have added <code>ORACLE_HOME</code>,<code>NLS_LANG</code>,<code>PATH</code> to environment variables and php's config is right.</p>
  
  <p>follows are my setting and configs:</p>
  
  <p><a href="https://i.stack.imgur.com/FOEI8.png" rel="nofollow noreferrer">NLS_LANG</a> <a href="https://i.stack.imgur.com/XzP7z.png" rel="nofollow noreferrer">ORACLE_HOME</a> <a href="https://i.stack.imgur.com/bWlTx.png" rel="nofollow noreferrer">PATH</a> <a href="https://i.stack.imgur.com/qVffG.png" rel="nofollow noreferrer">php-oci</a> <a href="https://i.stack.imgur.com/aMOpS.png" rel="nofollow noreferrer">PDO</a> <a href="https://i.stack.imgur.com/NvGRL.png" rel="nofollow noreferrer">php.ini</a></p>
  
  <p>After setting environment variables I used <code>set PATH=C:</code> in cmd and restarted cmd to take effect.</p>
  
  <p>My platform is <code>Windows Server 2008</code> and I'm using a web development environment <strong><code>PHPStudy</code></strong> with <code>php7.0.12</code>.And I got <code>instantclient_12_2</code> from Oracle website <a href="http://www.oracle.com/technetwork/topics/winsoft-085727.html" rel="nofollow noreferrer"> Instant Client for Microsoft Windows (32-bit)</a>(12.2.0.1.0)</p>