title: MySQL Charset Fails When DateTime Column on WHERE Clause
body: <p>I have a MYSQL query like below:</p>
  
  <pre><code>SELECT YA.PROGRAMNAME
  FROM    TABLE_Y YA
  WHERE   YA.PROGRAMID=9845 
  AND YA.ENDDATE&gt;NOW()
  </code></pre>
  
  <p>When executed, this query doesn't correctly return the language specific characters (here, Turkish characters)
  Above query outputs:</p>
  
  <pre><code>Zaman?n Tan???
  </code></pre>
  
  <p>Turkish characters are replaced with question marks.</p>
  
  <p>If I omit the last line of the query, then it works correctly but I miss to control if the program's end date is greater than now.</p>
  
  <pre><code>SELECT YA.PROGRAMNAME
  FROM    TABLE_Y YA
  WHERE   YA.PROGRAMID=9845
  
  /* Outputs: Zamanın Tanığı */
  </code></pre>
  
  <p>On a side note: the charset for TABLE_Y is latin5.</p>
  
  <p>What can I do to have it working correctly? Thanks.</p>