From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: unicode files created with windows notepad Date: Wed, 02 Feb 2005 09:16:12 -0700 Message-ID: <36ccmeF4v995vU1@individual.net> References: NNTP-Posting-Host: deer.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 1107361008 11750 80.91.229.6 (2 Feb 2005 16:16:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Feb 2005 16:16:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 02 17:16:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CwNBL-0002rM-00 for ; Wed, 02 Feb 2005 17:16:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwNOU-0005LS-7o for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 11:30:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-X-Trace: individual.net 8BTmhM1rrGulhI8mrlI2iAQqCy1K8CEr5E4oyMUQP9z8na2c0= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:128353 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:23864 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23864 David Ellis wrote: > I am trying to edit a unicode file created with Windows NotePad. > > What encoding method should I use? > > I have tried the following > utf-16-le > utf-16-le-dos > mule-utf-16-le-dos > > I am trying to read an xml file. I have the psgml-1.2.5 package installed. > > When I open the file with any of the above encoding, I either get an error > when the psgml package loads or an error when I try to save the file. My crystal ball is at the shop, getting buffed. Perhaps you could set debug-on-error and post the resulting *Backtrace* buffers. > If I save the same file with UTF-8 encoding in NotePad and open it with > emacs with UTF-8 encoding, I have no problems. So, it appears that I do not > have the correct encoding when I am trying to read the unicode file. > > Anyone have any ideas? Perhaps it is an issue with the presence or absence of the Byte Order Mark. Does the UTF-16-LE file written by NotePad include a BOM, and is it correct (FF FE)? If so, there could be a bug in Emacs and/or PSGML. -- Kevin Rodgers