Français :
http://sametmax.com/lencoding-en-python-une-bonne-fois-pour-toute/

:)

I am not sure that what you say is correct... Did you try to look at these
hardcoded code into the browser? Also, if you need to use the magic T(), it
makes no sens to have different language code into the application... But
your needs may be different.

Richard

On Sat, Nov 28, 2015 at 9:15 AM, Pierre <[email protected]> wrote:

>
> what for to hardcode ?
> python / web2py does everything transparently
> >>> a=['un','deux','été','maçon']
> >>> a
> ['un', 'deux', '\xc3\xa9t\xc3\xa9', 'ma\xc3\xa7on']
> >>> 'été' in a
> True
> >>> print a[3]
> maçon
>
> Isn't it that python does the encode / decode transparently : from 'été'
> to '\xc3\xa9t\xc3\xa9' and back to 'été' for screen output
> I can also do a database lookup based on the term 'été' so I don't
> understand what else should be encoded or decoded ?
> It's true though I have little knowledge of Unicode
>
> anyway thanks for the clarifications
>
> --
> 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.
>

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

Reply via email to