Hello,

* On Wed, May 17, 2006 at 08:13:05PM +0200, A.J.Mechelynck <[EMAIL PROTECTED]> 
wrote:
> >>>The problem has existed for a long time. The iconv() workaround
> >>>works correctly with vim 7.0.012 on linux, but not with vim 7.0.000
> >>>(default win32 build) on windows.
> >>>      
> >>Do you have +iconv or +iconv/dyn in :version? For better work with
> >>various encodings you need iconv.dll in some readable place.
> >>    
> >
> >On windows build, I have +iconv/dyn IIRC. As it is the standard build
> >from sourceforge, I guess the DLL is correctly provided -- I'll check
> >that tomorrow.
> >Can the function iconv() continue to transform characters without the
> >DLL ?
> >
> Without iconv.dll, Vim can only convert between UTF-8 and Latin1 (see 
> ":help iconv()").
> 
> To see if the +iconv feature is currently available, use ":echo 
> has('iconv')" (without the double quotes but with the singole quotes). 
> The answer should be 1 (you've got it) or 0 (you haven't).

   :echo has("iconv")
returns 1.

I guess I will have to forget about doing stuff like 
    fun! s:Foo()
        return "foo"
    endf
    fun! s:Bar()
        " 85 is the current scriptname
        return "bar\<c-R>=\<SNR>85_Foo()\<cr>bar"
        " return iconv("bar\<c-R>=\<SNR>85_Foo()\<cr>bar",
        "     \ 'latin1', &encoding)
    endf
    inoremap bfb <c-r>=<sid>Bar()<cr>



-- 
Luc Hermitte
http://hermitte.free.fr/vim/

Reply via email to