[ILUG] Editing unicode text files.
Kae Verens
kae at verens.com
Sat Feb 17 15:22:40 GMT 2007
Aine Douglas wrote:
>
>> Editors that can handle the full UCS/Unicode in a variety
>> of encodings include vim(1), mined, and yudit. Some other
>> editors, such as joe(1), handle UTF-8 but not necessarily
>> an arbitrary encoding.
>
> On my shell account, I have vim and joe, both render garbage. Will get
> mined and yudit later and test.
>
vim is usually quite good about that - as long as the console can
display the characters, it should work okay. I just opened up the
Russian language file for KFM in vi and vim, and both worked fine. This
was in Konsole; KDE's terminal emulator. I have had trouble with
charsets in xterm and many other terms, so make sure that's not a
problem first.
Also, UTF-8 files, which I presume you're talking about, usually start
with a single marker character to distinguish them from
otherwise-plain-text files. If that marker character is missing, vim may
not be figuring out the charset correctly.
Kae
More information about the ILUG
mailing list