new webpy breaks this!
[EMAIL PROTECTED] pop]$ ./code.py
http://0.0.0.0:8080/
Exception in thread Thread-12:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
self.run()
File "/usr/lib/python2.5/threading.py", line 440, in run
self.__target(*self.__args, **self.__kwargs)
File "/home//work/common/utils.py", line 261, in newfunc
return func(*a, **kw)
File "/home/work/pop/search.py", line 603, in savesearch
update_zeitgist(query)
File "/home//work/pop/search.py", line 620, in update_zeitgist
search_row = db.query('select * from zeitgist where
keywords=$query',vars=locals())
File "/home/work/common/web/db.py", line 564, in query
self._db_execute(db_cursor, sql_query)
File "/home/work/common/web/db.py", line 515, in _db_execute
for x in sql_query.values()])
File
"/usr/lib/python2.5/site-packages/DBUtils-0.9.4-py2.5.egg/DBUtils/SteadyDB.py",
line 335, in tough_method
result = method(*args, **kwargs) # try to execute
DataError: invalid byte sequence for encoding "UTF8": 0xbd
HINT: This error can also happen if the byte sequence does not match the
encoding expected by the server, which is controlled by "client_encoding".
On 10/24/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> On Fri, Oct 24, 2008 at 8:44 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:
>
>> On Fri, Oct 24, 2008 at 4:44 PM, Anand Chitipothu <[EMAIL PROTECTED]>wrote:
>>
>>>
>>> On Sat, Oct 25, 2008 at 3:41 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>>> wrote:
>>> >
>>> > web.setcookie('siteid', uuid.uuid3(uuid.NAMESPACE_DNS, 'XXX.com'),
>>> > '.XXX.com')
>>> > File "/home/mark/work/common/web/webapi.py", line 223, in setcookie
>>> > cookie[name] = urllib.quote(value)
>>>
>>> Try changinh the code to:
>>>
>>> cookie[name] = urllib.quote(utf8(value))
>>
>> OK, this seems to fix the problem!
>>
>> thanks
>>
>
> are you goign to commit this in git?
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---