From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "David Ellis" Newsgroups: gmane.emacs.help Subject: Re: unicode files created with windows notepad Date: Wed, 2 Feb 2005 14:27:26 -0600 Message-ID: References: <36ccmeF4v995vU1@individual.net> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1107376323 1332 80.91.229.2 (2 Feb 2005 20:32:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Feb 2005 20:32:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 02 21:32:03 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CwRA4-0008VQ-OM for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 21:31:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwRNG-0004qC-0t for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 15:45:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.wideopenwest.com!news.wideopenwest.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 02 Feb 2005 14:27:43 -0600 Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Original-Lines: 79 Original-NNTP-Posting-Host: 64.53.184.119 Original-X-Trace: sv3-r4pzwpRRE1QCwDP3YU63gs3QAu1x5mdm7y+BWFphQZUEmsQMnCSBedZpsOSqmCygXzzh4iZswMe7Qjh!GEK4HLx6poBLGaKvjbQzY6gSVIDOyBCsCr2HHP8nMEecPYR12YU9SKebXGJ7TKAzQUMsRSkzAtEF!jc1WAjCzQvfLPNHf9hCxBfM= Original-X-Complaints-To: abuse@wideopenwest.com X-DMCA-Complaints-To: abuse@wideopenwest.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.22 Original-Xref: shelby.stanford.edu gnu.emacs.help:128368 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:23880 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23880 I set debug-on-error to t, but no *Backtrace* buffer was created. The *Messages* buffer includes the following: (C:\Program Files\emacs\bin\emacs.exe) Loading c:.emacs_common... Loading font-lock... Loading regexp-opt...done Loading font-lock...done Loading pc-mode...done Loading pc-select...done Loading delsel...done Loading cc-styles... Loading image...done Loading cc-styles...done Loading c:.emacs_common...done For information about the GNU Project and its goals, type C-h C-p. Loading lazy-lock...done Fontifying *scratch*... (regexps.............) Loading lazy-lock...done Making completion list... Loading view...done Loading psgml (source)... File mode specification error: (void-variable $,1s;$,3u=u=$,29,$,3u=$,25`5m$,3u=u=$,26,$,3u=u=u=$,1sg$,3u=u=u=u=$,1sh$,3u=u=u=$,1sg$,3u= There is a long list of characters following this then, Loading bs...done Region saved My version of emacs is GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO. Thanks for your help. Dave "Kevin Rodgers" wrote in message news:36ccmeF4v995vU1@individual.net... > 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