Ni Va <
niva...@gmail.com> wrote:
> Hi,
>
> Using this string 'Unité' written in file under windows 10 french, it appears the char 'é' is not recognized after opening the file :
>>
>> 'Unité'->Unité
That's exactly what you'd get when the file is saved in utf-8, but somehow
you open it as latin1 i.e. if you tried to open file foo with e.g.:
:e ++enc=latin1 foo
Vim should generally recognize the file encoding automatically if you
have this in your .vimrc:
set enc=utf-8
set fileencodings=ucs-bom,utf-8,latin1
Regards
Dominique