help-gnu-emacs
[Top][All Lists]
Advanced

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

How to keep character encoding in text file...


From: Marko Myllymaki
Subject: How to keep character encoding in text file...
Date: Thu, 05 Mar 2009 13:17:50 +0200
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

I usually work with UTF-8 encoded files and my system is set up for UTF-8 (text may be in english, finnish, swedish, german, russian...)

However, sometimes I edit latin1 -encoded files and I would like to have the encoding automatically kept that way when saving files. Now it seems to change unwantedly to UTF-8 sometimes... I have to use iconv command line tool to change this...

So... if I load UTF-8 encoded file, emacs always saves it that way. If I open latin1-encoded file, it should keep it in the original encoding.

Maybe something to put in .emacs to achieve this...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]