再び del.icio.us experimental
tsupoさんから
# tsupo 『encodeURIComponent() を使うと UTF-8 以外のページを取り込んだときに文字化けします。別の手を考える必要があります。』
http://d.hatena.ne.jp/facet/20050130/1107114409
とのコメントをいただいたのでここ(EUC-JP)でやってみた。
独立思考さんのにgetSelection()が付いてなかったので、ちょっと改造しつつ。
javascript:location.href='http://del.icio.us/new/facet?v=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&extended='+encodeURIComponent(getSelection());
↑username(facet)の部分を編集。
↓bookmark用dummy link
post to del.icio.us
OK. あれ?
Firefox 1.0 on Linux @UTF-8だから?
Winでもやってみよう。
...
Firefox 1.0 on Win XP familiale SP2 @Shift_JIS
OK. できちゃいました。
?
Winを触ったついでに IE6用も作って実験。
javascript:location.href='http://del.icio.us/new/facet?v=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&extended='+encodeURIComponent(document.selection.createRange().text);
↑username(facet)の部分を編集。
↓bookmark用dummy link
post to del.icio.us
OK. こちらもできちゃいました。
??