Hi all,

I haven't figured out how to do this one. I'm trying the following:

A=plot(sin,-2,2)
A.axes_labels(['Valeur','Échantillon'])
A

The 'É' is shown as an empty block. Now I've read somewhere that I
could tell Python to force UTF, like this:
A=plot(sin,-2,2)
A.axes_labels(['Valeur',u'Échantillon'])
A

But this returns the following error message:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_11.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding:
utf-8 -*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("QT1wbG90KHNpbiwtMiwyKQpBLmF4ZXNfbGFiZWxzKFsnVmFsZXVyJyx1J8OJY2hhbnRpbGxvbiddKQpB"),globals())
+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>

  File "/tmp/tmpXJCjax/___code___.py", line 4, in <module>
    A.axes_labels(['Valeur',u'Échantillon'])
  File "/opt/SAGE/local/lib/python2.6/site-packages/sage/plot/
plot.py", line 746, in axes_labels
    self.__axes_labels = (str(l[0]), str(l[1]))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in
position 0: ordinal not in range(128)

Any ideas?

TIA,

Maxim

-- 
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/sage-support
URL: http://www.sagemath.org

Reply via email to