[melbourne-pug] Unicode for windows dummies

William ML Leslie william.leslie.ttg at gmail.com
Tue Aug 16 00:34:50 EDT 2016


On 16 August 2016 at 14:23, Mike Dewhirst <miked at dewhirst.com.au> wrote:
> On 16/08/2016 1:59 PM, William ML Leslie wrote:
>> import sys
>> print(sys.stdout.encoding)
>
>
> cp850
>
> There is no cp850 in the env vars so it must come from somewhere else.
>

You could set it to something else if you trust that the terminal will
actually display those characters.

sys.stdout.encoding = 'UTF-16'

Alternatively, since you're printing the list for representation
purposes, you could print(', '.join(repr(cell) for cell in cells)).

-- 
William Leslie

Notice:
Likely much of this email is, by the nature of copyright, covered
under copyright law.  You absolutely MAY reproduce any part of it in
accordance with the copyright law of the nation you are reading this
in.  Any attempt to DENY YOU THOSE RIGHTS would be illegal without
prior contractual agreement.


More information about the melbourne-pug mailing list