I was trying the file upload tutorial:
http://trac.turbogears.org/turbogears/wiki/StoringAndRetrievingFilesFromDatabase

At first I was trying variations, but at the end, I basically just
copied it and it still didn't work.  So the code is the same as the
tutorial.

Below is the trace:
  File
"C:\Python24\lib\site-packages\sqlobject-0.7.1-py2.4.egg\sqlobject\declarative.py",
line 93, in _wrapper
    return fn(self, *args, **kwargs)
  File
"C:\Python24\lib\site-packages\sqlobject-0.7.1-py2.4.egg\sqlobject\main.py",
line 1198, in __init__
    self._create(id, **kw)
  File
"C:\Python24\lib\site-packages\sqlobject-0.7.1-py2.4.egg\sqlobject\main.py",
line 1225, in _create
    self._SO_finishCreate(id)
  File
"C:\Python24\lib\site-packages\sqlobject-0.7.1-py2.4.egg\sqlobject\main.py",
line 1249, in _SO_finishCreate
    id, names, values)
  File
"C:\Python24\lib\site-packages\sqlobject-0.7.1-py2.4.egg\sqlobject\dbconnection.py",
line 765, in queryInsertID
    return self._dbConnection._queryInsertID(
  File
"C:\Python24\lib\site-packages\sqlobject-0.7.1-py2.4.egg\sqlobject\mysql\mysqlconnection.py",
line 94, in _queryInsertID
    self._executeRetry(conn, c, q)
  File
"C:\Python24\lib\site-packages\sqlobject-0.7.1-py2.4.egg\sqlobject\mysql\mysqlconnection.py",
line 73, in _executeRetry
    myquery = unicode(query, self.encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position
47: ordinal not in range(128)


Does anyone know why this error occurs?


Thanks!

Frank


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

Reply via email to