anyone knows what is wrong here?

On Mon, Sep 15, 2008 at 3:31 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:

>
>
>   311                 ctx[k] = safeunicode(v)
>    312
>    313         # status must always be str
>  *ctx* = <Storage {'status': u'200 OK', 'homedomain':
> u'h...Stockholm_i_Natt', 'query': '', 'method': 'GET'}>, *k* = 'fullpath',
> *global* *safeunicode* = <function safeunicode at 0x7f1f3fb55de8>, *v* =
> '/t/85682/Peter_J\xf6back_-_Stockholm_i_Natt'
> /home/mark/work/common/web/utils.py in *safeunicode*(obj='/t/85682/Peter_J
> \xf6back_-_Stockholm_i_Natt', encoding='utf-8')   214         return obj
>    215     elif isinstance(obj, str):
>    216         return obj.decode(encoding)
>    217     else:
>    218         if hasattr(obj, '__unicode__'):
>  *obj* = '/t/85682/Peter_J\xf6back_-_Stockholm_i_Natt', obj.*decode* =
> <built-in method decode of str object at 0x13b4df0>, *encoding* = 'utf-8'
>  /usr/lib64/python2.5/encodings/utf_8.py in *decode*
> (input='/t/85682/Peter_J\xf6back_-_Stockholm_i_Natt', errors='strict')
>    14
>     15 def decode(input, errors='strict'):
>     16     return codecs.utf_8_decode(input, errors, True)
>     17
>     18 class IncrementalEncoder(codecs.IncrementalEncoder):
>  *global* *codecs* = <module 'codecs' from
> '/usr/lib64/python2.5/codecs.pyc'>, codecs.*utf_8_decode* = <built-in
> function utf_8_decode>, *input* = 
> '/t/85682/Peter_J\xf6back_-_Stockholm_i_Natt',
> *errors* = 'strict', *builtin* *True* = True *<type
> 'exceptions.UnicodeDecodeError'>*: 'utf8' codec can't decode bytes in
> position 22-25: invalid data
>

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

Reply via email to