Hello all,

I use Pylons 0.9.6 with SQLAlchemy 0.4.1 and Genshi 0.4.4

I have a strange unicode dilemma ... :
- either I set sqlalchemy.convert_unicode = true in my configuration
file and url_for fails with : exceptions.Exception: url_for can only
return a string or None, got unicode instead: /ias/pics/published.png
- either I don't set sqlalchemy.convert_unicode and then Genshi fails
with : exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte
0xc3 in position 2: ordinal not in range(128)

Any idea how could I resolve this (other than str() everything in my
template files ..) ? 

Thanks,
Julien

-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to