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: ZelluX
Subject: Re: How to set default coding system when publishing pages in Muse?
Date: Mon, 19 Jan 2009 05:49:58 -0800 (PST)
User-agent: G2/1.0

On 1月19日, 上午1时42分, Jean Magnan de Bornier <address@hidden> wrote:
> ZelluX <address@hidden> wrote :
>
> | On 1月18日, 下午9时24分, Seweryn Kokot <address@hidden> wrote:
> | > ZelluX <address@hidden> 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

I've set this and the file seems to be utf-8 coded, but default coding
system remains raw-text when using C-c C-p to publish.

The following is coding system settings when editing a .muse file
(WinXP, emacs-cvs-0116)
Coding system for saving this buffer:
  U -- utf-8-unix (alias: mule-utf-8-unix)

Default coding system (for new files):
  U -- utf-8-unix (alias: mule-utf-8-unix)

Coding system for keyboard input:
  = -- no-conversion (alias: binary)

Coding system for terminal output:
  nil
Coding system for inter-client cut and paste:
  U -- utf-16le-dos

Defaults for subprocess I/O:
  decoding: U -- utf-8-dos (alias: mule-utf-8-dos)

  encoding: U -- utf-8-unix (alias: mule-utf-8-unix)


reply via email to

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