Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #8 UnicodeEncodeError after latest Sublime update #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adosaiguas
Copy link

When working in an OS with a language different than english, python complains with that error if the returned message from the command contains special characters.

I used the solution provided here: http://stackoverflow.com/questions/3224268/python-unicode-encode-error

@hydralien
Copy link

Hi Agustí,

I know it's few years too late to pull this up, but as I'm picking up th eproject as a new maintainer, thought of going through unmerged requests.
One questions on this one - any reason on doung ascii encoding and not utf8? I believe Sublime is capable of displaying unicode, so since these messages are targeted to the console, that should be OK. I might be also missing the perspective, so some extra details would be greatly appreciated.

Cheers,
Boris

@adosaiguas
Copy link
Author

The problem is that I don't even remember what problem was caused by this issue, but i think that files weren't getting synced because of some message that was displayed in catalan in the console and that had special characters. With this fix the special characters where converted to ascii and then it worked. Why the use os ascii and not utf-8?

@hydralien
Copy link

OK got it, thanks for the response! I totally understand you wouldn't recall details at this point, but thought of asking anyways =) Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants