Hi everyone,
I've toyed a bit with SageTeX now that it supports XeLaTeX (that's
really nice), and stumbled on some encoding problem, when I try to use
french accentuation in comments.
For example, this works as intended:
\begin{sagecommandline}
sage: # This is a comment
sage: 2+2
\end{sagecommandline}
But as soon as a try to use french accents (é è à ô ë, etc.) it fails:
\begin{sagecommandline}
sage: # à â ô é ù ï ë ö
\end{sagecommandline}
When running sage on this, I will get:
SyntaxError: Non-ASCII character '\xc3' in file test.sagetex.py on
line 20, but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details.
Following that link to Python's pep-0263, I tried adding something
like "# encoding=utf-8" at the head of the file test.sagetex.sagetex,
but the error persisted.
This does not only happens in the sagecommandline environment, but
also in sageblock, in any of Sagetex's environment, I would believe.
Sage's notebook works fine, as is Sage in command line (tested with
comments: # é à ô ù).
Any ideas?
Thanks.
--
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