Re: iconv() problem

2009-11-25 Thread Yongwei Wu
2009/11/26 Bram Moolenaar : > > Yongwei Wu wrote: > >> The help on iconv() writes: >> >>               When the conversion fails an empty string is returned. >> >> In fact, I have not found a way to make the conversion fail. >> >> When a file containing the following text encoded in cp936 is read i

Re: iconv() problem

2009-11-25 Thread Bram Moolenaar
Yongwei Wu wrote: > The help on iconv() writes: > > When the conversion fails an empty string is returned. > > In fact, I have not found a way to make the conversion fail. > > When a file containing the following text encoded in cp936 is read in > Vim as euc-jp, Vim complains "[

Re: iconv() problem

2009-11-15 Thread Matt Wozniski
2009/11/15 Yongwei Wu : > > Hi Bram and all, > > The help on iconv() writes: > >                When the conversion fails an empty string is returned. > > In fact, I have not found a way to make the conversion fail. > > When a file containing the following text encoded in cp936 is read in > Vim as

iconv() problem

2009-11-15 Thread Yongwei Wu
Hi Bram and all, The help on iconv() writes: When the conversion fails an empty string is returned. In fact, I have not found a way to make the conversion fail. When a file containing the following text encoded in cp936 is read in Vim as euc-jp, Vim complains "[CONVERSION ERROR