yes. Please open a ticket and we will fix it soon.
On Friday, 23 January 2015 16:12:28 UTC-6, Dani wrote:
>
> Hi:
>
> What string type pass for this work?
>
> file: gluon/serializers.py (from 25 Sep 2014)
> line: 182
>
> def safestr(obj, key, default=''):
> return str(obj[key]).encode('utf-8', 'replace') if key in obj else
> default
>
> This code fail for me if have special characters.
>
> Example:
>
> if:
> obj[key] = u"ó" #unicode
> fail
>
> if:
> obj[key] = "ó" #string
> fail
>
>
>
> if change encode for decode in this line work if obj[key] is a unicode.
> return str(obj[key]).decode('utf-8', 'replace') if key in obj else
> default
>
> Is this a possible bug?
>
> Very thanks
>
>
>
> --
> Dani
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.