<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABhUAAAa...)
I'm working on parsing an HTML fragment that is received from a WYSIWYG editor (summernote).The unique situation is that the images come not as files, but rather as data URI encoded images in the HTML itself. (i.e.<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABhUAAAa...)
To be compatible with most email clients, I have to convert these data URI images back into traditional images for insertion into the email message.My problem might NOT be Nokogiri-based. But, the crux of the problem is that I'm getting "Encoding::UndefinedConversionError: "\x89" from ASCII-8BIT to UTF-8" ( the character changes based on the image) when trying to parse out and convert the inline data-uri-based image back to a file.
So, the net of my question.. is does Data URIs work with Nokogiri? I know it converts everything to UTF8 internally. I'm wondering if that's clobbering data URIs.Anyone?
--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at http://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.