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

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

Re: How to set default coding system when publishing pages in Muse?


From: Jean Magnan de Bornier
Subject: Re: How to set default coding system when publishing pages in Muse?
Date: Sun, 18 Jan 2009 18:42:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

ZelluX <zellux@gmail.com> wrote :

| On 1月18日, 下午9时24分, Seweryn Kokot <sewko...@gmail.com> wrote:
| > ZelluX <zel...@gmail.com> writes:
| > > Hi, all
| >
| > > When i publish my muse project using C-c C-p, if there's any special
| > > characters, it will ask me to select coding system (default raw-text).
| > > How can i set the default coding system to utf-8 and let it never ask
| > > again?
| >
| > > Many thanks for your reply.
| >
| > (setq muse-html-encoding-default 'utf-8)
| > (setq muse-html-charset-default "utf-8")
| >
| > --
| > regards,
| > Seweryn
>
| I've set the two variables but it doesn't work

I think your muse file has to be utf-8 as well; I do that with:

(add-hook 'muse-mode-hook #'(lambda ()
                             (set-buffer-file-coding-system 'utf-8)))

in my ~/.emacs; you can also customize file-coding-system-alist.

Cheers,
-- 
Jean


reply via email to

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