On Thu, Dec 7, 2017 at 12:18 AM, Ni Va <nivaemail@gmail.com> wrote:
> Le mercredi 6 décembre 2017 18:59:07 UTC+1, Tony Mechelynck a écrit :
>> 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.
>
> Yes thank you Tony and Mr Gentis,
You could also try setting "chcp 1252" or (if that's what it is for
Unicode) "chcp 10646" either before starting Vim, or, if you use gvim,
in a batfile before invoking robocopy, maybe as follows:
-- ROBOCOPY.BAT ----------
chcp 1252
robocopy.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
-- ROBOCOPY.BAT -- END -----
(assuming that your robocopy program is a binary executable, not a bat
or perl or python etc. script, and that you start it with no more than
9 command-line arguments). You would then invoke robocopy.bat
explicitly _with_ the .bat extension in your Vim job-start command,
and that .bat file would set code page 1252 (which Vim ought to be
able to read with no trouble) then it would pass its command-line
arguments (if any) to the .exe program.
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.
Wednesday, December 6, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment