Re: Encoding latin/windows problem

19 views
Skip to first unread message

Dominique Pellé

unread,
Jan 22, 2020, 4:44:09 AM1/22/20
to Vim List
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

Ni Va

unread,
Jan 22, 2020, 5:33:08 AM1/22/20
to vim_use
Sorry it's not Vim but Excel that not interpret cp1252 or latin1 chars... a charset option certainly
Reply all
Reply to author
Forward
0 new messages