Created
February 24, 2012 06:43
-
-
Save mattn/1898555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scriptencoding utf-8 | |
set encoding=utf-8 | |
let url = "http://vim.g.hatena.ne.jp/keyword/選択されたテキストの取得" | |
let url = iconv(url, &encoding, "char") | |
echo len(system(printf('curl -L -s -k -i "%s"', url)))."\n" | |
echo len(system(printf('curl -L -s -k -i %s', url)))."\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment