When 'encoding' is utf-16 (or ucs-2 or ucs-4) and 'fileencoding' is
utf-8, Vim converts encoding wrongly.

Steps to reproduce:
  :set enc=utf-16
  :e ++enc=utf-8 utf8-multi-byte-text.txt
    (At this time, file is properly loaded)
  :w
Then, Vim breaks the file.

It seems that Vim converts the internal utf-8 text from latin1 to utf-8.

This problem doesn't occur when fenc is not utf-8.

-- 
Yukihiro Nakadaira - [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to