title: How to change character encoding of a PDO/SQLite connection in PHP?
body: <p>I'm having a little problem with a php-gtk app that keeps running into non-utf8 strings, I had found that the problem is in the database connection, even when the database is supposed to be in UTF-8.</p>
  
  <p>I had tried with the "SET CHARACTER SET utf8"(MySQL way) and the "SET NAMES UTF8" and nothing happen (there isn't any information about none of this commands in the "<a href="http://www.sqlite.org/lang.html" rel="noreferrer">Query Language Understood by SQLite
  </a>" page either, so I'm not surprised about that).</p>
  
  <p>PD: Maybe the connection is already in UTF-8 and the data isn't, but if there is a way to change the connection encoding this question would still be useful.</p>