Your command does not work on cmd.exe. The multi-byte text are treated as 
DBCS(double byte character set).
Last " was treated trailing byte of DBCS.
You should convert text to ACP(active code page) which uses in cmd.exe

If you are using windows japanese version, it's cp932.

:let command = 'C:\cygwin-1.7\bin\curl -L -s -k -i 
http://vim.g.hatena.ne.jp/keyword/選択されたテキストの取得'<http://vim.g.hatena.ne.jp/keyword/%E9%81%B8%E6%8A%9E%E3%81%95%E3%82%8C%E3%81%9F%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%AE%E5%8F%96%E5%BE%97>
:echo system(iconv(command, 'utf-8', 'cp932'))

If you don't want hardcoding, use 'char'.

:echo system(iconv(command, 'utf-8', 'char'))

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui