Wednesday, January 22, 2020

Re: Encoding latin/windows problem

Sorry it's not Vim but Excel that not interpret cp1252 or latin1 chars... a charset option certainly

Le mercredi 22 janvier 2020 10:44:09 UTC+1, Dominique Pelle a écrit :
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

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5c195246-3adc-4b4e-a025-1b1ded793b62%40googlegroups.com.

No comments:

Post a Comment