SimpleSync icon indicating copy to clipboard operation
SimpleSync copied to clipboard

Fixed #8 UnicodeEncodeError after latest Sublime update

Open adosaiguas opened this issue 11 years ago • 3 comments

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

adosaiguas avatar Jul 11 '13 22:07 adosaiguas

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

hydralien avatar Aug 04 '16 07:08 hydralien

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?

adosaiguas avatar Aug 05 '16 21:08 adosaiguas

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!

hydralien avatar Aug 05 '16 23:08 hydralien