It depends... If it coming from the form you have nothing to do... If you
add them in your code as hardcoded value you have to encode them properly,
you don't just do 'ton text en français' as it gonna fails...

You always better work in english in your code anyway as it makes not much
sens to work with other language and use the magic T() sometimes you will
sometimes you will not and that mean that your app will be automatically
translate if you do use T() but not if you hardcoded thing in other then
english language...

If you do use other software source of information that are coming with
various encoding (they better support UTF-8) you will have to use
variable_name.decode(utf-8) once when you get the stuff in and
variable_name.encode(utf-8) when you push stuff in this other softwares...
If you do such thing I recommand you to search for python and endocing and
read the doc...

Richard

On Mon, Jun 18, 2018 at 3:40 PM, Andrea Fae' <and...@gmail.com> wrote:

> How to manage latin character, like italian character like è,é, à, ò....
> If I want to insert for example à it "translate" to “/xe0153"....
> How to wotk with this type of charater...Do I need to change from utf-8
> to? Thanks
>
> --
> 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 web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to