<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>vividcode</author_name>
  <author_url>https://blog.hatena.ne.jp/vividcode/</author_url>
  <blog_title>vivid memo</blog_title>
  <blog_url>https://vividcode.hatenadiary.org/</blog_url>
  <categories>
    <anon>Firefox アドオン</anon>
    <anon>開発</anon>
  </categories>
  <description>Firefox の拡張機能でユーザに設定項目を入力させる場合、その設定内容は nsIPrefBranch を使って保存したり読み込んだりすることが多いと思います。 参考: ４章：XPCOM活用術〜高度な処理を実現する〜 (Firefox 拡張機能開発チュートリアル)んで文字列を保存するときに、日本語等の非 ascii 文字も問題なく保存、読出しができるものだと思っていたのですが違うみたいですね。 以下のコードでテストしました。/** * 設定保存, 読出しで日本語が化けないかどうかのテスト */ var test = function() { // 設定の情報を取得する XPCOM オブジェク…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fvividcode.hatenadiary.org%2Fentry%2F20090816%2F1250407296&quot; title=&quot;Firefox 拡張機能の設定項目の保存時に日本語が化ける - vivid memo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-08-16 16:21:36</published>
  <title>Firefox 拡張機能の設定項目の保存時に日本語が化ける</title>
  <type>rich</type>
  <url>https://vividcode.hatenadiary.org/entry/20090816/1250407296</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
