• Announcements

    • Shane D.

      Announcing 'Spaces' for Evernote Business!   02/27/2018

      Hi All, We're very excited to announce the launch of Spaces for Evernote Business! I invite you to find more details and learn more in our most recent Community Announcement! 
    • Shane D.

      Code of Conduct   03/26/2018

      Hi All, The updated version of the Code of Conduct has been implemented, and you will need to accept those terms before proceeding. If you would like to review the Code of Conduct, you can do so Here
    • Shane D.

      Update to Evernote Subscription Plans   04/12/2018

      Hi All, We've made some updates to our Evernote subscription plans. To learn more, please see the 'Update to Evernote Subscription Plans' thread in the Community Announcements forum, or you can go here.
Clement

Encoding issues depending on note origin : EV Web or EV Apps

Recommended Posts

Hi,

 

I've noticed a very strange issue using the PHP SDK. I've noticed that the same Regexp works if the note content was created on Evernote Web interface but not if the note is then edited with Mac/Windows apps. I suspect there may be some encoding issues behind this, but it sounds really strange.

 

I don't really know which version of the SDK we're using, may this be linked?

 

Please find below a code example. 

$note = $noteStore->getnote($authToken,$idr,true,false,false,false);$content = $note->content;
$content = preg_replace('#(<div>)?<en-todo></en-todo>(.*?)</?div>#s', '<ul><li>$2</li></ul>', $content);

Thanks!

Share this post


Link to post