geeknote
geeknote copied to clipboard
Unicode problem with gnsync
When I run gnsync the log shows there's an unicode problem with all my notes:
2015-02-07 13:42:37,017 : Sync Start
2015-02-07 13:42:48,220 : 'ascii' codec can't decode byte 0xc2 in position 7: ordinal not in range(128)
2015-02-07 13:42:49,336 : 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
2015-02-07 13:42:53,346 : 'ascii' codec can't decode byte 0xe2 in position 4: ordinal not in range(128)
2015-02-07 13:42:54,344 : 'ascii' codec can't decode byte 0xc2 in position 61: ordinal not in range(128)
2015-02-07 13:42:56,988 : 'ascii' codec can't decode byte 0xc2 in position 102: ordinal not in range(128)
2015-02-07 13:42:58,530 : 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)
2015-02-07 13:42:59,901 : 'ascii' codec can't decode byte 0xc2 in position 9: ordinal not in range(128)
2015-02-07 13:43:01,200 : 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)
2015-02-07 13:43:05,087 : 'ascii' codec can't decode byte 0xe2 in position 221: ordinal not in range(128)
2015-02-07 13:43:07,919 : 'ascii' codec can't decode byte 0xe2 in position 3: ordinal not in range(128)
2015-02-07 13:43:10,445 : 'ascii' codec can't decode byte 0xc2 in position 56: ordinal not in range(128)
2015-02-07 13:43:12,096 : 'ascii' codec can't decode byte 0xc2 in position 11: ordinal not in range(128)
2015-02-07 13:43:13,111 : 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
2015-02-07 13:43:15,510 : 'ascii' codec can't decode byte 0xe2 in position 30: ordinal not in range(128)
2015-02-07 13:43:17,119 : 'ascii' codec can't decode byte 0xe2 in position 1: ordinal not in range(128)
2015-02-07 13:43:18,972 : 'ascii' codec can't decode byte 0xc2 in position 171: ordinal not in range(128)
2015-02-07 13:43:20,917 : 'ascii' codec can't decode byte 0xe2 in position 14: ordinal not in range(128)
2015-02-07 13:43:22,673 : 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
2015-02-07 13:43:22,673 : Sync Complete
I get the same problem here and as far as I can tell none of my notes contain the bytecode that it complains about.
It should be well now. Please try again with updating your geeknote version from master branch.
I have a similar problem using gnsync. Here's the error log:
2015-04-02 23:49:03,721 gnsync init 121 : Sync Start 2015-04-02 23:49:05,868 geeknote wrapper 70 : Error: createNote : 'ascii' codec can't encode character u'\u2022' in position 261: ordinal not in range(128)
vim gnsync.py:
in line number 211: replace content=content with content=content.encode("utf-8") enjoy it :D
I copy some file segments from website and paste it into VIM, Then when I use gnsync command it gives error message like this:
2015-11-02 09:35:11,961 gnsync init 121 : Sync Start 2015-11-02 09:35:17,021 geeknote wrapper 70 : Error: updateNote : 'ascii' codec can't encode characters in position 269-272: ordinal not in range(128)
I modified the file gnsync.py in line number 211 as quydo suggested, it seems didn't work
What is your problem @Chenlonw
@quydo That works for me! Thanks a lot!!