Jump to content
riotbit

Open Sublime projects

Recommended Posts

Rather than encoding the query back to UTF-8, it'd be better to run the results of subprocess.check_output() through Workfow.decode().

The issue is that there are multiple ways to represent, say, ü in Unicode (and UTF-8), and Python considers them unequal. Python uses a different representation than OS X by default.

It's therefore possible for a user to enter, say, motörhead but it won't match a file called Motörhead.sublime-project. Workflow.decode(), which is automatically called on Workflow.args, ensures everything uses the same representation.

Edited by deanishe

Share this post


Link to post

Rather than encoding the query back to UTF-8, it'd be better to run the results of subprocess.check_output() through Workfow.decode().

 

Done and thanks for your help as well as for this article.

Edited by riotbit

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...