From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ZelluX Newsgroups: gmane.emacs.help Subject: Re: How to set default coding system when publishing pages in Muse? Date: Mon, 19 Jan 2009 05:49:58 -0800 (PST) Organization: http://groups.google.com Message-ID: <12518a2f-ce5e-487a-b7af-a46069afbf62@z28g2000prd.googlegroups.com> References: <97f17ef0-049c-4c39-96d0-c588c1873c94@p2g2000prn.googlegroups.com> <87vdsccxzf.fsf@bornier.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232376055 29853 80.91.229.12 (19 Jan 2009 14:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2009 14:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 19 15:42:08 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LOvK7-00086H-BA for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jan 2009 15:41:55 +0100 Original-Received: from localhost ([127.0.0.1]:37454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOvIq-0000rb-A4 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jan 2009 09:40:36 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z28g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: 218.71.181.98 Original-X-Trace: posting.google.com 1232372998 23720 127.0.0.1 (19 Jan 2009 13:49:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 19 Jan 2009 13:49:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z28g2000prd.googlegroups.com; posting-host=218.71.181.98; posting-account=UTne2woAAAAfHYwR210ibEljG1iYL7iO User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166146 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61467 Archived-At: On 1=D4=C219=C8=D5, =C9=CF=CE=E71=CA=B142=B7=D6, Jean Magnan de Bornier wrote: > ZelluX wrote : > > | On 1=D4=C218=C8=D5, =CF=C2=CE=E79=CA=B124=B7=D6, Seweryn Kokot wrote: > | > ZelluX writes: > | > > Hi, all > | > > | > > When i publish my muse project using C-c C-p, if there's any specia= l > | > > characters, it will ask me to select coding system (default raw-tex= t). > | > > How can i set the default coding system to utf-8 and let it never a= sk > | > > 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: =3D -- 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)