Wednesday, December 6, 2017

Re: bad display of output utf-8 chars

On Wed, Dec 6, 2017 at 5:01 PM, Lucien Gentis <lucien.gentis@waika9.com> wrote:
> Hello Ni Va,
>
> As Tony said, "letter é (small latin letter e with acute) is represented by
> 0x82" , so it is code page 850
>
> I dont use Windows, but by googling, I found that you can open a command
> terminal and use 'chcp' command to know which code page is set.
>
> Then, you can try 'chcp 850', or 'chcp 1252', then use a command like 'gvim
> <your file>' if you can redirect your robocopy output to <your file>

OK, so for code page 850, if you can redirect robocopy output to a
file, Vim (with +iconv, or with +iconv/dyn and the iconv or libiconv
library where Vim can find it. I tried to find a relevant help tag,
but ":helpgrep iconv" delivered so many useful items (including, no
doubt, some that you won't need today) that I thought it would be
better for you to browse them (first, map :cnext<CR> to some F key if
you haven't yet done it, then run ":helpgrep iconv", and then
repeatedly press the {rhs} of the mapping to see, one after another,
all the places in the help where that word is mentioned).

...er, I was saying, to open a file in code page 850, use ":view
++enc=cp850 filename.ext" or ":e ++enc=cp850 filename.ext" as I
originally said (at the time, I was _guessing_ that it could be code
page 850, which happens to be the International code page for MS/DOS).


Best regards,
Tony.

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment