New blog domain: kula.blog

It's still work in progress but new posts will be published on  https://kula.blog/ Thanks to 11ty base blog RSS is working from the start so it should be easy to add to your reader if you still use any :) If now then I hope you can sign up to the newsletter where I'll be publishing new posts and interesting articles to it from time to time. Please use  kula.blog  from now on.

Iframe src html content

This chrome example extension:
http://code.google.com/chrome/extensions/samples.html#597015d3bcce3da693b02314afd607bec4f55291
in feed.html creates html to assign to src attribute of iframe:
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_a11y/feed.html?content-type=text/plain

 desc.src="data:text/html," + iframe_src + itemDesc + "";


But if You try this there is problem with encoding within IFRAME, at least for everything else than ASCII...

To sole this I recommend reading:
http://msdn.microsoft.com/en-us/library/cc848897(v=vs.85).aspx
Especially: http://www.ietf.org/rfc/rfc2397.txt

Finally, fix looks like this:
desc.src="data:text/html;charset=\"UTF-8\"," + iframe_src + itemDesc + "";



Comments

Popular posts from this blog

How to simulate slow connection (developer proxy in Node.js)

Safari Mobile CSS VW and VH units bug.