This is what I tried:
For french this works:
echo system('chcp 850 & type "' . iconv('c:\temp\été2012.txt', &enc,
'latin1') . '"')
Even simply this works without the chcp (probably because my shell is
cp850 by default):
echo system('type "' . iconv('c:\temp\été2012.txt', &enc, 'latin1') .
'"')
I tried also but it didn't worked:
echo system('type "' . iconv('c:\temp\été2012.txt', &enc, 'cp850') .
'"')
For russian dosen't work althought it seems it should work, here the
shell encoding is changed to russian, and vim's utf-8 is changed to
russian 855:
echo system('chcp 855 & type "' . iconv('c:\temp\Copy of Новый
текстовый документ.txt', &enc, 'cp855') . '"')
I tried also with 866 which is for russian also:
echo system('chcp 866 & type "' . iconv('c:\temp\Copy of Новый
текстовый документ.txt', &enc, 'cp866') . '"')
I tried also with koi8-r without success
echo system('chcp 855 & type "' . iconv('c:\temp\Copy of Новый
текстовый документ.txt', &enc, 'koi8-r') . '"')
echo system('chcp 866 & type "' . iconv('c:\temp\Copy of Новый
текстовый документ.txt', &enc, 'koi8-r') . '"')
On 21 jan, 19:27, av <alexandrev...@gmail.com> wrote:
> thanks, I will try your propositions and get back to post the working solution.
--
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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment