convert_unicode=True not afecting Postgresql TEXT column
Issue #591
resolved
Hi,
I'm having a problem dealing with a Postgresql TEXT Column.
>>> import sqlalchemy as sa
>>> from turbogears.database import session
>>> test = session.get(Test, 2)
>>> test.unicode_field
u'<p>Despu\xe9s de varias semanas de hesitaci\xf3n'
>>> test.text_field
'<p>Despu\xc3\xa9s de varias semanas de hesitaci\xc3\xb3n
I'm using SqlAlchemy within TurboGears and setup the connection with both attribute [BR]sqlalchemy.encoding='utf-8' [BR]sqlalchemy.convert_unicode=True
I would expect the last one to affect Text data type as well, so I guess it's a bug. Or is it a feature and I am missing using something ?
Comments (4)
-
Account Deleted -
repo owner -
Account Deleted - changed status to wontfix
(original author: ants) Works for me in 0.3.9 and 0.4.0.
-
repo owner - removed milestone
Removing milestone: 0.3.9 (automated comment)
- Log in to comment
I think I've been mixing wrong config files. Should be closed as invalid. Sorry about that.
Thanks.