Re: [sage-support] accented characters

2011-03-28 Thread Laurent

Le 26/03/2011 10:53, clodemil a écrit :

Hi All,

Sage does not accept accented characters like: é è à give a syntax
error.


For more informations, you can read this one (in French):

http://dl.afpy.org/pycon-fr-09/Comprendre_les_erreurs_unicode.pdf

As native french speaker, it saved my live more than once !

Have a nice day
Laurent

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] accented characters

2011-03-26 Thread Mike Hansen
On Sat, Mar 26, 2011 at 10:53 AM, clodemil  wrote:
> Hi All,
>
> Sage does not accept accented characters like: é è à give a syntax
> error.

In Python 2.x, you can only use the following characters for
identifiers (things like function names, variable names, etc.):  the
uppercase and lowercase letters A through Z, the underscore _ and,
except for the first character, the digits 0 through 9.

> If in a string it is accepted but coded like:" après" becomes 'apr
> \xc3\xa8s'
> I suppose it is a question of font encoding.
> What can I do ?

This should work fine:

sage: s = 'après'; s
'apr\xc3\xa8s'
sage: print s
après

How are you trying to use these characters?

--Mike

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] accented characters

2011-03-26 Thread clodemil
Hi All,

Sage does not accept accented characters like: é è à give a syntax
error.
If in a string it is accepted but coded like:" après" becomes 'apr
\xc3\xa8s'
I suppose it is a question of font encoding.
What can I do ?
Of course, my keyboard layout in Ubuntu 10.10 is properly set to
belgian french.

TIA

Claude

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org