SimpleSync
SimpleSync copied to clipboard
Fixed #8 UnicodeEncodeError after latest Sublime update
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
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
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!