On Jul 23, 2014, at 1:20 PM, Andrew Pashkin <andrew.pash...@gmx.co.uk> wrote:

> Hi all!
> 
> I have an issue with unicode and SQLAlchemy.
> 
> I've created topic on SO:
> http://stackoverflow.com/questions/24795444/how-to-save-unicode-with-sqlalchemy
> 
> And repository with Vagrant/Ansible setup, so you can easily reproduce this 
> bug on your local machine:
> https://github.com/AndrewPashkin/sqlalchemy_pg_unicode_save_fail
> 
> In short - I just get UnicodeEncodeError when trying to save one specific 
> Unicode symbol ('\u2013') with SQLAlchemy.
> 
> Does anybody know how this can be handled?
> 
> ps
> The most weird thing here is that, author of this test case:
> http://stackoverflow.com/a/24798089/1818608
> does not get such error, as I am.

do you have a stack trace?   C extensions are installed or not?  What OS 
platform?  What's the client encoding of your PG database (it's in 
postgresql.conf).   Try creating a raw psycopg2 script?   


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to