You are not logged in.

#1 2007-10-09 14:26:12

domanov
Member
From: Italy
Registered: 2006-11-10
Posts: 45

Vim doesn't display correctly utf8 characters

Hi,
I don't use an utf8 locale, but some files (like latex sources of my reports) are in utf8 for compatibility with other pcs. Since a while, but i cannot recall exactly when (normally, I don't use vi for latex), it doesn't display correctly such files. Emacs does, kate does, but not vim. I tried to set encoding and file-encoding in vim, but it didn't fix the issue. Any clue? Is vim broken?

Related question. It is safe to switch to utf8 locale (I mean, in rc.conf) months after the installation?

domanov

Offline

#2 2007-10-09 15:26:31

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: Vim doesn't display correctly utf8 characters

:set enc=utf8

???

Offline

#3 2007-10-09 16:28:00

domanov
Member
From: Italy
Registered: 2006-11-10
Posts: 45

Re: Vim doesn't display correctly utf8 characters

lang2 wrote:

:set enc=utf8

It didn't work (as i said in my previous post).
I changed from it_IT@EURO to it_IT.UTF8 in rc.conf, restarted and now vim is fine (the corresponding line in locale.gen was already uncommented and I rerun locale-gen just to be sure). Now man pages are really ugly, even worse if I erase the option -Tlatin1 from NROF line in man.conf (as suggested in the man.conf manual). Ok, let's deal with that, now.

Do I risk to broke anything more important? Shall i convert to utf-8 all the text files in /home, /etc and so on??

Offline

#4 2007-10-10 12:42:08

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: Vim doesn't display correctly utf8 characters

I don't think so. And vim will not change your file's original encoding, unless you tell it to of course.

Offline

Board footer

Powered by FluxBB