Skip to content

UnicodeEncodeError #6

Closed
Closed

Description

@hgrimelid

I'm getting this error message in console when trying to run "List Bound Keys".

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./boundkeys.py", line 375, in run
  File "./boundkeys.py", line 99, in getOutput
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 7: ordinal not in range(128)

Activity

  1. mjl commented on Aug 12, 2014

    @mjl

    Fix, line 336:

     jsonObj = self.jsonify(open(filePath, "r", encoding='UTF8').read())
    

    Add an encoding parameter to open, like so:

     jsonObj = self.jsonify(open(filePath, "r", encoding='UTF8').read())
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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