• Announcements

    • Shane D.

      Evernote Webinars   12/01/2017

      We've recently begun conducting Evernote Webinars for various topics and subjects. Take a look at the Calendar to check them out, and see if they interest you! Keep an eye out as there will be more to come in the future!
    • Shane D.

      Evernote 2018 Planning Templates   12/11/2017

      The Evernote 2018 Planning Templates are now available! You can find them Here!  
  • 0

Charset issue while create note with AppleScript


Im trying to clip some pages to notes with AppleScript. Sample code here : 

tell application "Evernote"
	create note from url "http://www.dapenti.com/blog/more.asp?name=xilei&id=126913"
	create note from url "http://www.jianshu.com/p/fb97b21aeb1d"
end tell

then I get a note with messy code  and a good note.

I notice the first url's http response header "Content-Type:text/html" and in its html tag <meta http-equiv='content-type' content='text/html; charset=gb2312' />

the second url's http response header "Content-Type:text/html; charset=utf-8" and tag <meta charset="utf-8"> 

Maybe when the evernote applescript api  can't detect charset from http header, it use some default value like 'utf-8',  that make the note messy code.

Is there any resolution now? 

Maybe detect charset from html tag? or provide an extra parameter "charset"  to  "create note from url" api ?

(Chrome Evernote Clipper extension doing the job pretty good)

Share this post

Link to post

0 replies to this idea

Recommended Posts

There have been no replies to this idea yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now