On Oct 18, 2007, at 9:36 AM, Rick Harding wrote:
> Paul Johnston wrote: >> Hi, >> >> > Did you declare >> > your table columns as Unicode? >> >> I am auto leading the structure from the database. >> >> Ah, the problem is probably that the columns are reflecting as >> String, not Unicode. >> >> Tough one to fix! I'd probably hack the SA source code to reflect >> as Unicode. Another option is to use override the reflection, for >> the unicode columns. >> >> Paul > > I had this issue and I ended up changing my model definitions to > use unicode instead of string and then I added the extra param on > the end of my dsn string ?use_unicode=1 I think it was. > > This solved the issue for me as the strings were taken care of > straight away by sqlalchemy before they hit anything else. > > You might see if the dns flag helps when autoloading the structure > as well. > Sorry if I'm way off base. I missed the beginning of this thread. Are you using MySQL? I had the same problem, using MySQL and SQLObject. What finally worked for me was installing the latest mysql-python, currently 1.2.2c1. This is the "test" branch, so it won't be installed automagically by easy_install. See my comment at the bottom of this page: http://docs.turbogears.org/1.0/DatabaseMySQL HTH, --- Lee Capps Technology Specialist CTE Resource Center [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

