Ian,

On 11/1/06, Ian Wilson <[EMAIL PROTECTED]> wrote:
So I think my problem is happening because of this:
>>> unicode(unicode('', 'utf-8'),'utf-8')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: decoding Unicode is not supported

AND because changing:
                        myquery = unicode(query, self.encoding)
To this:
                    if type(query) != unicode:
                        myquery = unicode(query, self.encoding )
                    else:
                        myquery = query
in the file "sqlobject/mysql/mysqlconnection.py" fixes the problem.

Indeed. I was writing about this problem some time ago(*), just got confused about the  strack trace you've been showing.

* - http://maxischenko.in.ua/blog/entries/89/sqlobject-unicode-and-ascii-error/

 

I really don't know if this is a "fix" or avoidance of the problem
because my knowledge is minimal.    Thank you everyone for your
responses sorry if my previuos posts were misleading and I am really
confused but its working now.

Glad to hear it finally works for you.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to