diff --git a/autoload/sw/server.vim b/autoload/sw/server.vim index 869043f2cc8f443f15d666e0abff73abf6a36639..66d9620657567c344a12810e4de64e02dd7c1318 100644 --- a/autoload/sw/server.vim +++ b/autoload/sw/server.vim @@ -238,7 +238,11 @@ function! sw#server#execute_sql(sql, ...) return '' endif endif - let text = a:sql . "\n" + if (exists('g:sw_windows_codepage')) + let text = iconv(a:sql, &encoding, g:sw_windows_codepage) . "\n" + else + let text = a:sql . "\n" + endif call s:log_channel(channel, text) if callback != '' let s:channel_handlers[channel].tmp_handler = callback