Subject Re: [firebird-python] sqlalchemy ticket 2125
Author werner
On 07/18/2011 07:09 PM, Philippe Makowski wrote:
 

werner [2011-07-18 19:00] :
> What are the particular problems you are running into?
>
handling correctly unicode
for now

> Would be a pity, I thought Hajime had made all the necessary changes to
> be able to have it compatible for both Py2 and Py3.
not yet
run this for example, and you'll see :

What about this?  See attached code.

Force Py2 into "utf8" with the first few lines and then use encode in the appropriate places.

Some people don't like the sys.setdefaultencoding trick/hack but it worked for me in the past.

Maybe Michael or some others have an other cleaner solution to this problem.

Werner