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

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

Re: UTF8


From: R B Mahoney
Subject: Re: UTF8
Date: 19 Jan 2004 08:14:12 GMT
User-agent: slrn/0.9.8.0 (FreeBSD)

On Sun, 18 Jan 2004 14:22:10 +0100, David Rasmussen
 <david.rasmussen@gmx.net> wrote:

> When I just do
>
> 'emacs whatever.txt'
>
> and edit the newly created file using some danish special characters, 
> and then save, I get an ISO-8859-1 encoded text file. How do I get emacs 
> to use UTF8 instead of ISO-8859-1 as default?

to your init file (e.g. ~/.emacs.el) you could add:

(setq load-path (cons "/path/to/utf-8-input_file/" load-path))
(prefer-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(modify-coding-system-alist 'file "" 'utf-8)
(setq default-enable-multibyte-characters t)
(load-library "utf-8-input")
(setq default-input-method 'utf-8-input)

`utf-8-input.el' is available at:

 http://homepages.comnet.co.nz/~r-mahoney/scripts/scripts.html


Best regards,

 Richard MAHONEY


-- 
Richard MAHONEY  |  rbm49@ext.canterbury.ac.nz
                 |  homepages.comnet.co.nz/~r-mahoney


reply via email to

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