Unicode value and lookup tests
What's failing with the postgresql tests?
 The return values from psycopg2 are `str` types, non-decoded. Rev 4a2ba5b adds encoding and decoding and the tests pass.

Here's the result before the patch:

# 

## FAIL: test_unicode_lookup (tests.UnicodeFieldTests)

Traceback (most recent call last):
  File "/Users/jokull/Code/peewee/tests.py", line 1104, in test_unicode_lookup
    self.assertEqual(a1.title, a.title)
AssertionError: 'L\xc3\xbd\xc3\xb0veldi\xc3\xb0 \xc3\x8dsland' != u'L\xfd\xf0veldi\xf0 \xcdsland'

# 

## FAIL: test_unicode_value (tests.UnicodeFieldTests)

Traceback (most recent call last):
  File "/Users/jokull/Code/peewee/tests.py", line 1097, in test_unicode_value
    self.assertEqual(a.title, u'Lýðveldið Ísland')
AssertionError: 'L\xc3\xbd\xc3\xb0veldi\xc3\xb0 \xc3\x8dsland' != u'L\xfd\xf0veldi\xf0 \xcdsland'
 I'm confused...is this working?
 First commit is the test case so u can see what fails. Second commit fixes it.

Sent from my iPhone

On Jan 19, 2012, at 9:43 PM, Charles Leifer
reply@reply.github.com
wrote:

> I'm confused...is this working?
> 
> ---
> 
> Reply to this email directly or view it on GitHub:
> https://github.com/coleifer/peewee/pull/46#issuecomment-3574890
 For what it's worth the Django ORM does this too.
 Thanks for all your work on this!  Merged into master and verified your tests against psql & sqlite.  Tested against MySQL as well and am getting failures:

```
======================================================================
FAIL: test_unicode_lookup (tests.UnicodeFieldTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/charles/code/peewee/tests.py", line 1012, in test_unicode_lookup
    self.assertEqual(a1.title, a.title)
AssertionError: 'L\xfd\xf0veldi\xf0 \xcdsland' != u'L\xfd\xf0veldi\xf0 \xcdsland'

======================================================================
FAIL: test_unicode_value (tests.UnicodeFieldTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/charles/code/peewee/tests.py", line 1005, in test_unicode_value
    self.assertEqual(a.title, u'Lýðveldið Ísland')
AssertionError: 'L\xfd\xf0veldi\xf0 \xcdsland' != u'L\xfd\xf0veldi\xf0 \xcdsland'
```
 Fixed in 0c3b2ef62a83bfdd964be1739817a34d87ea4548

They pass for SQLite but not for PostgreSQL.
