geeknote icon indicating copy to clipboard operation
geeknote copied to clipboard

Unicode problem with gnsync

Open samanta opened this issue 10 years ago • 7 comments

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

samanta avatar Feb 07 '15 21:02 samanta

I get the same problem here and as far as I can tell none of my notes contain the bytecode that it complains about.

lordpengwin avatar Feb 08 '15 12:02 lordpengwin

It should be well now. Please try again with updating your geeknote version from master branch.

vitalyrodnenko avatar Feb 19 '15 20:02 vitalyrodnenko

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)

StannisZhou avatar Apr 03 '15 20:04 StannisZhou

vim gnsync.py:

in line number 211: replace content=content with content=content.encode("utf-8") enjoy it :D

zolaahihi avatar May 08 '15 15:05 zolaahihi

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

Chenlonw avatar Nov 02 '15 08:11 Chenlonw

What is your problem @Chenlonw

zolaahihi avatar May 05 '16 13:05 zolaahihi

@quydo That works for me! Thanks a lot!!

Zhou-Zhuo avatar Oct 27 '16 06:10 Zhou-Zhuo