Loading ...
Sorry, an error occurred while loading the content.

2448Re: Unicode conversion bug?

Expand Messages
  • Mansing
    Mar 12, 2008
      Thanks Tony for the advice.  More details on my problem:

      I am using gVim on Windows Vista Business which has full (normal) Chinese support.  I set "enc=ucs-2le" and "fenc=utf-8" for conversion (saving to utf-8 format);  I use the "Save As" menu option to do the same on Notepad.  The (ucs-2le) input file was displayed correctly on gVim with guifont "MingLiU".

      To examine the output files, I set "enc=utf-8" and the guifont to "MingLiU", for both cases.  The utf-8 file converted by Notepad was displayed correctly, while that by gVim wasn't.  The hex dumps, for both output files, were copied from the gVim window after ":%!xxd".

      mt 2008-03-12

      Tony Mechelynck wrote:
      msingtse@... wrote:
      I am playing with CSV files with Chinese contents.  Windows (Excel)
      outputs a text file in ucs-2le coding. . .
      VIM converted utf-8:
      00040b0: 7169 3320 796f 6e67 3120 28c3 a5c2 91c2  qi3 yong1 (.....
      00040c0: a8c3 a5c2 95c2 93c3 a5c2 bac2 b829 2c20  .............),
      Notepad converted utf-8:
      0004090: 7169 3320 796f 6e67 3120 28e5 91a8 e595  qi3 yong1 (.....
      00040a0: 93e5 bab8 292c 200d 0a43 6f73 6d6f 7320  ....), ..Cosmos
      As can be seen, English characters are fine, but Chinese characters
      (those "..." inside parantheses) are different.  Does it suggest a bug
      in the VIM conversion? . . .
      . . .
      - Are you using gvim or console Vim? If Console Vim, does your console 
      support Unicode?
      - In any case, what is the reply to
      	:set encoding?
      . . .

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

    • Show all 25 messages in this topic