in reply to Re: Encoding issue
in thread Encoding issue

pasteing the the character in windoes file looks like this
Limón
But in the Linux vi editor, it
Limón

Replies are listed 'Best First'.
Re^3: Encoding issue
by graff (Chancellor) on Apr 02, 2010 at 01:27 UTC
    That is exactly what I would expect. The fact that one text editor or display tool shows the text the way you expect, and vi shows it some other way, doesn't alter the data itself in any way. It's the same sequence of bytes in each case, but the non-ASCII bytes are just being interpreted in two different ways.

    Check your docs for vi to see whether it offers any method for treating data as utf8-encoded. If it doesn't, you'll just need to accept the fact that "wide" (multi-byte) utf8 characters in your text file will show up as multiple single-byte characters (in the non-ASCII 0x80-0xff range) when you look at them in vi.