From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "lu@luxdo.jp" Newsgroups: gmane.emacs.help Subject: Re: about nxhtml-mode encoding problem Date: Wed, 11 Jul 2007 23:07:07 +0900 Message-ID: <4694E40B.20104@luxdo.jp> References: <469249C1.7080202@luxdo.jp> <9CDB8EBC-92CA-4E16-89B7-A55064C94777@Web.DE> <46925D33.9030007@luxdo.jp> <29FE7F24-04E1-49BA-9347-051BD8B5015E@Web.DE> <4692C6AD.4060906@luxdo.jp> <4694D17E.2000203@luxdo.jp> <4694D8BF.8030808@gmail.com> 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 1184162922 31939 80.91.229.12 (11 Jul 2007 14:08:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2007 14:08:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 11 16:08:38 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 1I8crp-0007ft-PH for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2007 16:08:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8crm-0007JL-5u for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2007 10:08:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8crY-0007Iw-T8 for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 10:08:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8crQ-0007Fo-Gx for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 10:08:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8crQ-0007Fl-9c for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 10:08:08 -0400 Original-Received: from softbank218118058050.bbtec.net ([218.118.58.50] helo=www.luxdo.jp) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I8cr6-0004h0-O1 for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 10:08:01 -0400 Original-Received: from [192.168.11.6] (softbank218118058050.bbtec.net [218.118.58.50]) (authenticated bits=0) by www.luxdo.jp (8.13.1/8.13.1) with ESMTP id l6BE78Dt001037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Jul 2007 23:07:09 +0900 User-Agent: Thunderbird 1.5.0.12 (X11/20070604) In-Reply-To: <4694D8BF.8030808@gmail.com> X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:45600 Archived-At: Hi, There's not any xml header in my jsp, I just sended the screenshot by the previous mail. Lennart Borgman (gmail) wrote: > Could you then please provide more information? (You did not answer my > previous mail.) > > Especially I would like to know how the xml header look. > > > > lu@luxdo.jp wrote: >> Hi, >> >> I sovle the nxhtml encoding problem by add the following code. >> >> ;; Fix nhxtml save bug(error encoding) >> (add-hook 'before-save-hook >> (lambda () >> (setq coding-system-for-write buffer-file-coding-system))) >> >> I think it is a bug in nxhtml. >> >> lu@luxdo.jp wrote: >>> I'm very sorry,I made a mistake. >>> The problem is only on *nxhtml-mode*. >>> so The title is confusing.I correct it. >>> >>> Peter Dyballa wrote: >>>> >>>> Am 09.07.2007 um 18:07 schrieb lu: >>>> >>>>> But I'm sorry to say all of them doesn't work. >>>>> when I save the file it become utf-8. >>>> >>>> What is the definition of file-coding-system-alist before you try >>>> to save the buffer? Have you checked that your file does not >>>> contain characters outside the allowed ascii, katakana-jisx0201, >>>> and japanese-jisx0208 sets? What happens when you open the file in >>>> sjis, i.e. C-x RET c sjis RET C-x C-f ? Do you see >>>> strange or inappropriate glyphs? >>>> >>>> -- >>>> Greetings >>>> >>>> Pete >>>> >>>> Atheism is a non prophet organization. >>>> >>>> >>>> >>> >>> >>> >>> _______________________________________________ >>> help-gnu-emacs mailing list >>> help-gnu-emacs@gnu.org >>> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >>> >>> lu@luxdo.jp wrote: >>>> I use xhtml-mode to edit jsp file which is encoded by sjis. >>>> while I save the file it become utf-8 even when I (Coding system for >>>> saving file (default nil): sjis >>>> I want to know How to solve this problem. >>>> >>>> >>>> _______________________________________________ >>>> help-gnu-emacs mailing list >>>> help-gnu-emacs@gnu.org >>>> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >>>> >> >> >> >> _______________________________________________ >> help-gnu-emacs mailing list >> help-gnu-emacs@gnu.org >> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >> >