unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: ZelluX <zellux@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to set default coding system when publishing pages in Muse?
Date: Mon, 19 Jan 2009 05:49:58 -0800 (PST)	[thread overview]
Message-ID: <12518a2f-ce5e-487a-b7af-a46069afbf62@z28g2000prd.googlegroups.com> (raw)
In-Reply-To: 87vdsccxzf.fsf@bornier.net

On 1月19日, 上午1时42分, Jean Magnan de Bornier <j...@bornier.net> wrote:
> ZelluX <zel...@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

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	other threads:[~2009-01-19 13:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-18 12:26 How to set default coding system when publishing pages in Muse? ZelluX
2009-01-18 13:24 ` Seweryn Kokot
     [not found] ` <mailman.5161.1232284683.26697.help-gnu-emacs@gnu.org>
2009-01-18 17:30   ` ZelluX
2009-01-18 17:42     ` Jean Magnan de Bornier
2009-01-19 13:49       ` ZelluX [this message]
2009-01-18 18:39     ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12518a2f-ce5e-487a-b7af-a46069afbf62@z28g2000prd.googlegroups.com \
    --to=zellux@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).