bill lam 写道: >> thread is all about. The suggested utf8-guess pseudo encoding would >> work >> similar to the bomb pseudo encoding but wouldn't simple look at the >> first character but scan the whole buffer. > > I remembered there is a vim script that detect various chinese file > encodings by scanning its content, but I do not use that. I don't > remember whether it scans the entire file or just a configurable > number of lines. >
For chinese it is the same problem, since pure-ascii cp936 and utf-8 text are the same. If user want to use utf-8 as default and auto-detect cp936 files its all okay. If user want to use cp936 as default, then the new file may be saved in utf-8 if the text contains only ASCII contents. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
