id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	work_issues	upstream	reviewer	author	merged	dependencies	stopgaps
2593	[with patch, positive review] Sage chokes on utf-8 in .sage files	malb	malb	"On Tuesday 18 March 2008, Lars Fischer wrote:
> Hello,
>
> this question is related to the thread ""SAGE chokes on French
> character"":
> http://groups.google.com/group/sage-support/browse_thread/thread/af850956c4
>ed137f/34a34d6cf23c4d89?lnk=gst&q=encoding#34a34d6cf23c4d89 two weeks ago.
> As I understand it, there is a patch which works only for the notebook.
>
> I want to use umlauts or more general utf-8 encoded files attached to
> a sage session in a console. (In Python I would use
> # -*- encoding: utf-8 -*-
> as second line magic encoding hint, but the preparser prepends its
> three line ""This file was *autogenerated.... comment and destroys the
> encoding hint mechanism .)
>
> If I delete the preparser comment, so that the encoding line becomes
> the second line, then python and sage print the umlaut and the error
> ""Non-ASCII character '\xc3' in file .... "" does not occur.
"	defect	closed	major	sage-2.11	user interface	fixed									
