{"action":"created","issue":{"url":"https://api.github.com/repos/psycopg/psycopg2/issues/331","labels_url":"https://api.github.com/repos/psycopg/psycopg2/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/psycopg/psycopg2/issues/331/comments","events_url":"https://api.github.com/repos/psycopg/psycopg2/issues/331/events","html_url":"https://github.com/psycopg/psycopg2/issues/331","id":88237762,"number":331,"title":"encoding error on py3.4","user":{"login":"ilvalle","id":1519351,"avatar_url":"https://avatars.githubusercontent.com/u/1519351?v=3","gravatar_id":"","url":"https://api.github.com/users/ilvalle","html_url":"https://github.com/ilvalle","followers_url":"https://api.github.com/users/ilvalle/followers","following_url":"https://api.github.com/users/ilvalle/following{/other_user}","gists_url":"https://api.github.com/users/ilvalle/gists{/gist_id}","starred_url":"https://api.github.com/users/ilvalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilvalle/subscriptions","organizations_url":"https://api.github.com/users/ilvalle/orgs","repos_url":"https://api.github.com/users/ilvalle/repos","events_url":"https://api.github.com/users/ilvalle/events{/privacy}","received_events_url":"https://api.github.com/users/ilvalle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-14T19:45:10Z","updated_at":"2015-06-15T12:10:10Z","closed_at":null,"body":"The following works on python2.7 but fails on python3.4. \r\n```\r\n>>> import psycopg2\r\n>>> psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)\r\n>>> adapted = psycopg2.extensions.adapt('ἀγοραζε')\r\n>>> adapted.getquoted()\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nUnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-6: ordinal not in range(256)\r\n>>> psycopg2.__version__\r\n'2.6 (dt dec pq3 ext lo64)'\r\n```\r\nIs it a bug or am I missing something?"},"comment":{"url":"https://api.github.com/repos/psycopg/psycopg2/issues/comments/112039175","html_url":"https://github.com/psycopg/psycopg2/issues/331#issuecomment-112039175","issue_url":"https://api.github.com/repos/psycopg/psycopg2/issues/331","id":112039175,"user":{"login":"ilvalle","id":1519351,"avatar_url":"https://avatars.githubusercontent.com/u/1519351?v=3","gravatar_id":"","url":"https://api.github.com/users/ilvalle","html_url":"https://github.com/ilvalle","followers_url":"https://api.github.com/users/ilvalle/followers","following_url":"https://api.github.com/users/ilvalle/following{/other_user}","gists_url":"https://api.github.com/users/ilvalle/gists{/gist_id}","starred_url":"https://api.github.com/users/ilvalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilvalle/subscriptions","organizations_url":"https://api.github.com/users/ilvalle/orgs","repos_url":"https://api.github.com/users/ilvalle/repos","events_url":"https://api.github.com/users/ilvalle/events{/privacy}","received_events_url":"https://api.github.com/users/ilvalle/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T12:10:10Z","updated_at":"2015-06-15T12:10:10Z","body":"Well, beside this issue, I don't see any drawback in switching the default encoding to utf8"}}