pymander / evernote-mode

Emacs interface for Evernote
166 stars 23 forks source link

"\xE9" from ASCII-8BIT to UTF-8 #18

Open F-A-L opened 9 years ago

F-A-L commented 9 years ago

Sorry for bothering, it's me again(embarrased), I had googled around, but with no luck, so I ask here again... Below is the situation:

evernote-open-note or evernote-browser is fine; however, after evernote-create-note or editing the note from evernote-open-note, evernote-save-note shows "\xE9" from ASCII-8BIT to UTF-8.

the last .evernote-mode.log shows: E, [2014-11-26T12:06:05.256885 #5251] ERROR -- : ["/usr/bin/enclient.rb:1916:in eval'", "/usr/bin/enclient.rb:1916:inrun'", "/usr/bin/enclient.rb:1947:in `

'"]

I think it's a encoding problem, but have no idea how to debug, please give me some advice, thank you.

pymander commented 9 years ago

I think I'm going to need more than just the last line of .evernote-mode.log. Can you try to include a whole stack trace?

F-A-L commented 9 years ago

"Erik L. Arneson" notifications@github.com writes:

I think I'm going to need more than just the last line of . evernote-mode.log. Can you try to include a whole stack trace?

— Reply to this email directly or view it on GitHub.

Silly question, but could you tell me what steps I need to show the whole stack trace ,please?

Because after I set (setq stack-trace-on-error t), nothing happens...

By the way, there is nothing in the Backtrace buffer, while debug-on-error is t, and debug-on-quit is t .

And the Messages buffer only shows: "\xC3" from ASCII-8BIT to UTF-8.

Sincerely, Frank

DiogoFerrari commented 9 years ago

Same issue here. Its anoying. The problem is that some characters are not recognized, like quotation marks. After load a note on emacs buffer, convert to TEXT format, edit and trying to save again, it shows such message. The problem, I guess, is that emacs reads some characters, and saving the note it does not allowed the characters as it were converted into the buffer in the edit mode. Any idea how to fix this?

pymander commented 9 years ago

Is there a chance either of you could create a text file that triggers the bug? That would give me a place to start.

ryankojima commented 9 years ago

I have similar error too. I got this error when I'm writing Japanese character. Here is example text I got error: あいうえお

I hope it helps to figure out the error

ryankojima commented 9 years ago

I fixed bug by changing enclient.rb. I'm not sure side effect of this so this time I just put diff below

548,549c548,549
<       Formatter.to_ascii @title, @content, *@tag_names
< 
---
>       Formatter.to_ascii @title,*@tag_names
>       
587,588c587
<       Formatter.to_ascii @title, @notebook_guid, @content, *@tag_names
< 
---
>   Formatter.to_ascii @title, @notebook_guid, *@tag_names
i-takuya commented 9 years ago

I send pull-request to fix this issue. Please see this pull request. https://github.com/pymander/evernote-mode/pull/28

itsumiken commented 7 years ago

When I try to make any note that has japanese title like "タイトル", I still faced exactly same error.

Thank you.

itsumi