Fixed #8 UnicodeEncodeError after latest Sublime update#9
Fixed #8 UnicodeEncodeError after latest Sublime update#9adosaiguas wants to merge 2 commits intotnhu:masterfrom
Conversation
|
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. Cheers, |
|
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? |
|
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! |
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