From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: about xhtml-mode encoding problem Date: Mon, 09 Jul 2007 19:08:05 +0200 Message-ID: <46926B75.7020503@gmail.com> References: <469249C1.7080202@luxdo.jp> <9CDB8EBC-92CA-4E16-89B7-A55064C94777@Web.DE> <46925D33.9030007@luxdo.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184000944 7134 80.91.229.12 (9 Jul 2007 17:09:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2007 17:09:04 +0000 (UTC) Cc: Peter Dyballa , 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 19:09:01 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 1I7wjM-0001vS-JM for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2007 19:09:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7wjL-0007L5-PV for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2007 13:08:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I7wj7-0007Km-K4 for help-gnu-emacs@gnu.org; Mon, 09 Jul 2007 13:08:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I7wj5-0007KU-M4 for help-gnu-emacs@gnu.org; Mon, 09 Jul 2007 13:08:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7wj5-0007KN-GB for help-gnu-emacs@gnu.org; Mon, 09 Jul 2007 13:08:43 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I7wj5-0002YT-1u for help-gnu-emacs@gnu.org; Mon, 09 Jul 2007 13:08:43 -0400 Original-Received: from c83-254-133-189.bredband.comhem.se ([83.254.133.189]:63505 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1I7wj1-0000jN-3O; Mon, 09 Jul 2007 19:08:39 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666 In-Reply-To: <46925D33.9030007@luxdo.jp> X-Antivirus: avast! (VPS 000754-5, 2007-07-08), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.133.189 X-Scan-Result: No virus found in message 1I7wj1-0000jN-3O. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1I7wj1-0000jN-3O 3ba9b448a331fea486686e92825c0243 X-detected-kernel: Linux 2.6? (barebone, rare!) 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:45562 Archived-At: lu@luxdo.jp wrote: > I added these line in my .emacs. > (modify-coding-system-alist 'file "\\.jsp\\'" 'sjis) > (add-to-list 'file-coding-system-alist '("\\.jsp\\'" . sjis)) > (add-to-list 'file-coding-system-alist '("\\.xhtml\\'" . sjis)) > (prefer-coding-system 'sjis) > > But I'm sorry to say all of them doesn't work. > when I save the file it become utf-8. > I'm using emacs 22 on linux and windows xp. Which one does not work? What major modes do you use?