Hello Michael,
thanks for your answer.
On Apr 12, 1:40 pm, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:
> Mmmh, the UTF8 in notebook cell bug was supposed to be fixed by #2399
> which was merged in 2.10.3.rc3. It sounds like the problem is in the
> publishing step, so this sounds like you hit another bug. We will open
> a ticket once we have narrowed this down to what the issue is. Thanks
> for reporting this.
See my screenshot from the first post, the intermediate files on our
server have the encoding hint. It is a 2.11 version. I think there is
some copying involved somewhere.
My unqualified guess is that the write (around line 1380 in
worksheet.py)
# This magic comment at the very start of the file allows
utf8
# characters in the file
input = '# -*- coding: utf_8 -*-\n' + input
open(tmp,'w').write(input)
could be the reason. Perhaps some encode or decode input to ascii or
unicode. Or set the encoding of the opened file object before write.
The bug is not only in the publishing step. It also does not work for
unpublished worksheets. I suppose the intermediate files for each cell
are created in a "not unicode aware" way.
With best regards,
Lars Fischer
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---