Skip to content

UnicodeEncodeError #21

@meishern

Description

@meishern

Using Python 3.3: got the following error which according to http://stackoverflow.com/a/3224300/1245478 can be fixed with encoding the unicode string as ascii first. The unicode is for a glyph and is defined elsewhere and is correct.

UnicodeEncodeError: 'charmap' codec can't encode character '\ue73d' in position
#1389: character maps to

Traceback (most recent call last):
File "\mincss-script.py", line 9, in load_entry_point('mincss==0.8.1', 'console_scripts', 'mincss')()

File "\main.py", line 70, in main return run(args)

File "\main.py", line 37, in run f.write(link.after)

File "\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions