[Linux-disciples] vim "CONVERSION ERROR"

Stephen R Laniel steve at laniels.org
Sat Apr 30 06:07:05 EDT 2005


On Sat, Apr 30, 2005 at 12:35:11AM -0400, Chung-chieh Shan wrote:
> Oops, for some reason I thought you were trying to -open- a text
> file with unusual characters in them using Vim.  I take back what
> I said about saving the file.  I would just switch to UTF-8 (set
> the environment variable LC_ALL to en_US.UTF-8 before you start the
> terminal, assuming that you have added that locale in "dpkg-reconfigure
> locales") and see what happens.

That's the puzzling bit: my locale is already UTF-8. I only
recently switched to UTF-8, and that's when the problems
started. But when I was using an ASCII locale, pasting in
such documents just failed altogether; the copy-and-paste
operation would encounter some strange character in the
non-ASCII file that I was pasting in (say, a curly quote)
and refuse to let me paste. I'd never get an error; the
paste would just fail. Now every single paste goes through,
but I get these strange errors.

I wonder if the ultimate problem is that the character
encoding of the MS Word documents is something nonstandard
(iso-1232 is the Windows encoding family, right?). But I'm
still puzzled, because I assume vim would have an internal
conversion process that knows how to convert most every
character to an internal UTF-8 representation. Maybe not in
this case.

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20050430/c4298103/attachment.pgp


More information about the Linux-disciples mailing list