[Tutor] close, but no cigar

Jim Mooney cybervigilante at gmail.com
Tue Jul 23 00:22:00 CEST 2013


On 22 July 2013 14:11, Marc Tompkins <marc.tompkins at gmail.com> wrote:

>
> One way to deal with this is to specify an encoding:
>     newchar = char.decode('cp437').encode('utf-8')
>

Works fine, but I decided to add a dos graphics dash to the existing dash
to expand the tree
visually. Except I got a complaint from IDLE that I should add this:

# -*- coding: utf-8 -*-

Will that always work? Setting coding in a comment? Or am I looking at a
Linux hash line?

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130722/e80762e1/attachment.html>


More information about the Tutor mailing list