#13296: matplotlib do not handle unicode properly from command line
---------------------------------------+------------------------------------
       Reporter:  slabbe               |         Owner:  jason, was
           Type:  defect               |        Status:  new       
       Priority:  major                |     Milestone:  sage-5.3  
      Component:  graphics             |    Resolution:            
       Keywords:  unicode, matplotlib  |   Work issues:            
Report Upstream:  N/A                  |     Reviewers:            
        Authors:                       |     Merged in:            
   Dependencies:                       |      Stopgaps:            
---------------------------------------+------------------------------------

Comment (by slabbe):

 Replying to [comment:5 ppurka]:
 > According to a note in `sage/misc/interpreter.py`, Sage defaults to
 `utf-8` if no encoding is detected.

 Using sage-5.2.rc0, I don't see this note. It diseappeared? or appeared
 later?

 > But `sage file.sage` doesn't work. Probably the functions in
 `interpreter.py` don't get called?

 But if the encoding is declared in {{{file.sage}}} :

 {{{
 # -*- coding: utf-8 -*-
 # this is file.sage
 t = text(u'an accent : é', (1,1), color='red')
 t.axes_labels([u'an accent : é', 'Y'])       # broken without #13161
 t.show()
 }}}

 then {{{sage file.sage}}} works perfectly : the accent "é" gets properly
 written. So the problem seems to be from the command line...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13296#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en.

Reply via email to