Clement

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

2 posts in this topic

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