title: SQLJocky: Incorrect encoding of received text
body: <p>I've implemented simple web server to have proxy to MySQL using 'sqljocky' package.
  And I have issue with character encoding, cyrillic glyphs displays incorrectly:  </p>
  
  <pre><code>ÐÐ°Ð²ÑÐ´Ð¾Ð² ÐÐ¸ÑÐ°Ð»Ð¸Ð¹ instead of Давыдов Витайлий
  </code></pre>
  
  <p><strong>EDIT</strong>: Table collation is <code>utf8_general_ci</code>.</p>
  
  <p>I've tried to query <code>SET NAMES UTF8</code>:  </p>
  
  <pre><code>pool.query('set names utf8');
  </code></pre>
  
  <p>[<strong>UPDATED</strong>] Then I've created my.cnf in /etc/ directory with this content:  </p>
  
  <pre><code>[mysqld]
  character-set-server=utf8
  collation-server=utf8_general_ci
  </code></pre>
  
  <p>Output of <code>show variables like "%char%";</code>  </p>
  
  <pre><code>mysql&gt; show variables like "%char%";
  +--------------------------+--------------------------------------------------------+
  | Variable_name            | Value                                                  |
  +--------------------------+--------------------------------------------------------+
  | character_set_client     | utf8                                                   |
  | character_set_connection | utf8                                                   |
  | character_set_database   | utf8                                                   |
  | character_set_filesystem | binary                                                 |
  | character_set_results    | utf8                                                   |
  | character_set_server     | utf8                                                   |
  | character_set_system     | utf8                                                   |
  | character_sets_dir       | /usr/local/mysql-5.6.12-osx10.7-x86_64/share/charsets/ |
  +--------------------------+--------------------------------------------------------+
  8 rows in set (0,00 sec)
  </code></pre>
  
  <p>Output of <code>show variables like 'collation%'</code>  </p>
  
  <pre><code>mysql&gt;  show variables like 'collation%';
  +----------------------+-----------------+
  | Variable_name        | Value           |
  +----------------------+-----------------+
  | collation_connection | utf8_general_ci |
  | collation_database   | utf8_general_ci |
  | collation_server     | utf8_general_ci |
  +----------------------+-----------------+
  3 rows in set (0,00 sec)
  </code></pre>
  
  <p>But still having incorrect displayed characters.</p>
  
  <p>How to get it displayed correctly?</p>