diff --git a/autoload/dbext.vim b/autoload/dbext.vim index 99bdd56..87548ea 100644 --- a/autoload/dbext.vim +++ b/autoload/dbext.vim @@ -3503,6 +3503,9 @@ function! s:DB_ORA_execSql(str) exe 'redir! > ' . s:dbext_tempfile silent echo output redir END + + " fix encoding to latin1[dos] before sending to sqlplus + execute 'sp ' . s:dbext_tempfile .' | write ++enc=latin1 ++ff=dos | q!' let dbext_bin = s:DB_fullPath2Bin(dbext#DB_getWType("bin")) diff --git a/plugin/dbext.vim b/plugin/dbext.vim index b227408..16beca7 100644 --- a/plugin/dbext.vim +++ b/plugin/dbext.vim @@ -103,6 +103,10 @@ if !exists(':DBExecVisualSQL') command! -nargs=0 -range DBExecVisualSQL :call dbext#DB_execSql(DB_getVisualBlock()) xmap