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: Thu, 3 Feb 2005 07:50:38 -0600 Message-ID: <-c2dncWbXMncsZ_fRVn-3g@wideopenwest.com> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1107438701 17419 80.91.229.6 (3 Feb 2005 13:51:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Feb 2005 13:51:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 03 14:51:33 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 1CwhOP-00086v-00 for ; Thu, 03 Feb 2005 14:51:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cwhbj-0006Re-Af for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Feb 2005 09:05:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!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: Thu, 03 Feb 2005 07:50:57 -0600 Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Original-Lines: 62 Original-NNTP-Posting-Host: 64.53.184.119 Original-X-Trace: sv3-iOkT4PlBMkpLJLo3rbc4TAGz5rL50qkxg9aqrdvwNiVQWEc/yOkmzqdRJVQdSXHSDINeeK7lsXNCPfr!LYsqfdsLgzBgFNDo7XNx85YnaBqGjAEgFtdxmUPOb3+c+98Cet8+eXmTMLWsIgEASX4R7xYbCVNW!jdmeLJ4tiPdvO95Bydk9MFo= 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:128380 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:23893 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23893 As a test, I removed my .emacs file to ensure that there was not something in it that caused a problem. I made a text file test.txt with notepad saving it as a unicode file. Then, in emacs I opened it using the following. C-x RET c utf-16-le RET C-x C-f c:/test.txt RET The file opens fine. Then I set debug-on-error to t. If I edit the file and then do C-x C-f to save, I get an error. Here is the info from the *Backtrace* buffer. Debugger entered--Lisp error: (void-function utf-16-le-pre-write-conversion) utf-16-le-pre-write-conversion(1 31) write-region(1 31 "c:/test.txt" nil t "c:/test.txt") basic-save-buffer-2() basic-save-buffer-1() basic-save-buffer() save-buffer(1) * call-interactively(save-buffer) Can anyone tell me what is wrong? Can anyone duplicate this problem? My emacs version is GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO. Dave "David Ellis" wrote in message news:RMGdnVrKy_3mQWLcRVn-2A@wideopenwest.com... >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. > > 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? > > Dave >