Skip to content

Commit 0649680

Browse files
committed
to utf-8
1 parent 4dc8d6c commit 0649680

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

example/hatenadiary.vim.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
scriptencoding cp932
1+
scriptencoding utf-8
22

33
let hatena_id = 'your-hatena-id'
44
let password = 'your-hatena-password'
55

6-
" エントリを書く
6+
" エントリを書く
77
let entry = atom#newEntry()
8-
call entry.setTitle("日記エントリータイトル")
8+
call entry.setTitle("日記エントリータイトル")
99
call entry.setContentType("text/html")
1010
call entry.setContent("<script>alert(2)</script>")
1111

12-
" エントリを下書きとしてポストする
12+
" エントリを下書きとしてポストする
1313
let id = atom#createEntry("http://d.hatena.ne.jp/".hatena_id."/atom/draft", hatena_id, password, entry)
1414

15-
" ちょっと修正して下書きから公開に変更し、新しいIDを得る
15+
" ちょっと修正して下書きから公開に変更し、新しいIDを得る
1616
call entry.setContent("<script>alert(1)</script>")
1717
let id = atom#updateEntry(id, hatena_id, password, entry, {"X-HATENA-PUBLISH": 1})
1818

19-
" 公開エントリを取得して表示する
19+
" 公開エントリを取得して表示する
2020
let entry = atom#getEntry(id, hatena_id, password)
2121
echo entry.getTitle()
2222
echo entry.getContent()
2323

24-
" エントリを消す
24+
" エントリを消す
2525
call atom#deleteEntry(id, hatena_id, password)
2626

2727
" vim:set ft=vim:

example/jugem.vim.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
scriptencoding cp932
1+
scriptencoding utf-8
22

33
let jugem_id = 'your-jugem-id'
44
let password = 'your-jugem-password'
@@ -12,10 +12,10 @@ let imgurl = api.newMediaObject(jugem_id, jugem_id, password, {
1212
\ "path": imagePath,
1313
\})
1414

15-
let text = "どないや<br /><img src=\"".imgurl."\">"
15+
let text = "どないや<br /><img src=\"".imgurl."\">"
1616

1717
echo api.newPost(jugem_id, jugem_id, password, {
18-
\ "title": "vimでmetaWeblogAPIを叩いて画像付きブログをポストする",
18+
\ "title": "vimでmetaWeblogAPIを叩いて画像付きブログをポストする",
1919
\ "description": text,
2020
\ "dateCreated": "",
2121
\ "categories": ["test"],

example/livedoor.vim.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
scriptencoding cp932
1+
scriptencoding utf-8
22

33
let livedoor_id = 'your-livedoor-id'
44
let password = 'your-livedoor-password'
55

6-
" エントリを書く
6+
" エントリを書く
77
let entry = atom#newEntry()
8-
call entry.setTitle("日記エントリータイトル")
8+
call entry.setTitle("日記エントリータイトル")
99
call entry.setContentType("text/html")
1010
call entry.setContent("<script>alert(3)</script>")
1111

0 commit comments

Comments
 (0)