Skip to content

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.

2 participants