* How to set default coding system when publishing pages in Muse?
@ 2009-01-18 12:26 ZelluX
2009-01-18 13:24 ` Seweryn Kokot
[not found] ` <mailman.5161.1232284683.26697.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: ZelluX @ 2009-01-18 12:26 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to set default coding system when publishing pages in Muse?
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>
1 sibling, 0 replies; 6+ messages in thread
From: Seweryn Kokot @ 2009-01-18 13:24 UTC (permalink / raw)
To: help-gnu-emacs
ZelluX <zellux@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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to set default coding system when publishing pages in Muse?
[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-18 18:39 ` Peter Dyballa
0 siblings, 2 replies; 6+ messages in thread
From: ZelluX @ 2009-01-18 17:30 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to set default coding system when publishing pages in Muse?
2009-01-18 17:30 ` ZelluX
@ 2009-01-18 17:42 ` Jean Magnan de Bornier
2009-01-19 13:49 ` ZelluX
2009-01-18 18:39 ` Peter Dyballa
1 sibling, 1 reply; 6+ messages in thread
From: Jean Magnan de Bornier @ 2009-01-18 17:42 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to set default coding system when publishing pages in Muse?
2009-01-18 17:30 ` ZelluX
2009-01-18 17:42 ` Jean Magnan de Bornier
@ 2009-01-18 18:39 ` Peter Dyballa
1 sibling, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2009-01-18 18:39 UTC (permalink / raw)
To: ZelluX; +Cc: help-gnu-emacs
Am 18.01.2009 um 18:30 schrieb ZelluX:
> I've set the two variables but it doesn't work
A bit more global: (prefer-coding-system 'utf-8)
--
Greetings
Pete
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny..."
– Isaac Asimov
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to set default coding system when publishing pages in Muse?
2009-01-18 17:42 ` Jean Magnan de Bornier
@ 2009-01-19 13:49 ` ZelluX
0 siblings, 0 replies; 6+ messages in thread
From: ZelluX @ 2009-01-19 13:49 UTC (permalink / raw)
To: help-gnu-emacs
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)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-01-19 13:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-01-18 18:39 ` Peter Dyballa
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).