useragent.

This commit is contained in:
mattn
2012-02-21 15:34:58 +09:00
parent 5efe248f0e
commit 01524e272f
2 changed files with 7 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
"=============================================================================
" zencoding.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
" Last Change: 14-Feb-2012.
" Last Change: 21-Feb-2012.
let s:save_cpo = &cpo
set cpo&vim
@@ -1194,6 +1194,10 @@ function! s:get_content_from_url(url, utf8)
silent! exec '0r!'.g:zencoding_curl_command.' "'.substitute(a:url, '#.*', '', '').'"'
endif
let ret = join(getline(1, '$'), "\n")
let ic = iconv(ret, "utf-8", &encoding)
if ret != ic
let ret = ic
endif
silent! bw!
return ret
endfunction

View File

@@ -1,7 +1,7 @@
"=============================================================================
" File: zencoding.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
" Last Change: 02-Feb-2012.
" Last Change: 21-Feb-2012.
" Version: 0.59
" WebPage: http://github.com/mattn/zencoding-vim
" Description: vim plugins for HTML and CSS hi-speed coding.
@@ -79,7 +79,7 @@ if !exists('g:zencoding_debug')
endif
if !exists('g:zencoding_curl_command')
let g:zencoding_curl_command = 'curl -s -L'
let g:zencoding_curl_command = 'curl -s -L -A Mozilla/5.0'
endif
if exists('g:use_zen_complete_tag') && g:use_zen_complete_tag