From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: about xhtml-mode encoding problem Date: Mon, 9 Jul 2007 17:31:51 +0200 Message-ID: <9CDB8EBC-92CA-4E16-89B7-A55064C94777@Web.DE> References: <469249C1.7080202@luxdo.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183995246 17930 80.91.229.12 (9 Jul 2007 15:34:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2007 15:34:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "lu@luxdo.jp" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 17:34:05 2007 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 1I7vFV-0004aD-3K for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2007 17:34:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7vFU-00051F-Ai for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2007 11:34:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I7vFD-000505-RP for help-gnu-emacs@gnu.org; Mon, 09 Jul 2007 11:33:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I7vFC-0004z3-53 for help-gnu-emacs@gnu.org; Mon, 09 Jul 2007 11:33:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7vFB-0004yl-Mh for help-gnu-emacs@gnu.org; Mon, 09 Jul 2007 11:33:45 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I7vFA-0001GI-Ex for help-gnu-emacs@gnu.org; Mon, 09 Jul 2007 11:33:44 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id 629408B126F7; Mon, 9 Jul 2007 17:31:54 +0200 (CEST) Original-Received: from [62.134.231.248] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1I7vDN-0003e8-00; Mon, 09 Jul 2007 17:31:54 +0200 In-Reply-To: <469249C1.7080202@luxdo.jp> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+CRk3B1RLZfMaazZzVnvNqsqxYpd5P3KT4YYLP o6tZ773aZGlFipPDWVP6cejHCpDMT6F5dFAwTYyl5zCGgTffbD mh/KGzY80T6i/gfkxCyA== X-detected-kernel: Linux 2.4-2.6 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:45560 Archived-At: Am 09.07.2007 um 16:44 schrieb lu: > I want to know How to solve this problem. You might try to use (file) local variables in the first line(s) of the file that are a valid XHTML comment: -*- coding: sjis; or insert a (prefer-coding-system 'sjis) into your ~/.emacs file. More elaborate would be (not sure whether it works) (modify-coding-system-alist 'file "\\.xhtml\\'" 'sjis) or, which works for me with different values: (add-to-list 'file-coding-system-alist '("\\.xhtml\\'" . sjis)) -- Greetings Pete "A mathematician is a machine that turns coffee into theorems."