[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I edit UTF-8 encoded files with Emacs?



Jim MacBaine wrote:
> Short question: How do I edit UTF-8 encoded files with Emacs? Those
> files contains German quotation marks, Umlauts and other interesting
> things.

I am using GNU Emacs right now and don't appear to me to be having any
trouble editing UTF-8 encoded files.  The only special configuration I
have for emacs is the following in my ~/.emacs.

  (prefer-coding-system 'utf-8)

I do have many iso10646 fonts installed.  Perhaps you are missing a
font?

Really I don't know what to suggest because if you have the fonts
installed (as you seem to because it works for you with mutt and vim)
and you have LANG set to a UTF-8 font (as you appear to have) and you
have also set prefer-coding-system (as you also seem to have done)
then it should work.  At least I did nothing more that I can recall
and all of that works for me.

The best UTF-8 unicode font that I have found so far (personal
preference) is:

  apt-get install xfonts-efont-unicode xfonts-efont-unicode-ib

  *Font: -efont-fixed-medium-r-normal--16-160-75-75-c-80-iso10646-1
  XTerm*font: -efont-fixed-medium-r-normal--16-160-75-75-c-80-iso10646-1
  XTerm*Font2: -efont-fixed-medium-r-normal-*-12-*-*-*-*-*-iso10646-1
  XTerm*Font3: -efont-fixed-medium-r-normal-*-14-*-*-*-*-*-iso10646-1
  XTerm*Font4: -efont-fixed-medium-r-normal-*-16-*-*-*-*-*-iso10646-1
  XTerm*Font5: -misc-fixed-medium-r-normal--18-*-*-*-*-*-iso10646-1
  XTerm*Font6: -efont-fixed-medium-r-normal-*-24-*-*-*-*-*-iso10646-1

> Long explanation: I'm in the need to reply to windows-1251-encoded
> emails and to keep all those special characters like the ellipses,
> German quotation marks, etc intact.  In fact I'm proof-reading texts
> that other people write. I like to use mutt from Sarge for most of my
> eMails, with Emacs as editor.

That is the same as my system configuration.

> The setup I have so far works quite good:  I run mutt in an utf-8
> xterm, and set charset=utf8 in .muttrc.

I have not needed to set the charset in mutt.  I believe it picks this
up automatically from the LANG variable setting.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: