[melbourne-pug] Unicode encode problem

John La Rooy john.larooy at gmail.com
Tue Sep 22 21:38:59 CEST 2015


On Tue, Sep 22, 2015 at 7:51 PM, Mike Dewhirst <miked at dewhirst.com.au>
wrote:

> File "C:\Users\mike\env\xxex3\lib\encodings\cp1252.py", line 19, in encode
>     return codecs.charmap_encode(input,self.errors,encoding_table)[0]
> UnicodeEncodeError: 'charmap' codec can't encode character '\u2083' in
> position 293: character maps to <undefined>
>

This is telling you that there is no representation for '\u2083' in the
CP1252 encoding.
You'll need to tell the logging to open the file with a unicode codec (eg
utf-8).

Make sure the program you are viewing the log file with also knows it's
utf-8

Cheers,
John La Rooy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/melbourne-pug/attachments/20150923/4ff6b2dc/attachment.html>


More information about the melbourne-pug mailing list