[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unicode files created with windows notepad
From: |
David Ellis |
Subject: |
Re: unicode files created with windows notepad |
Date: |
Thu, 3 Feb 2005 07:50:38 -0600 |
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" <ddellis@mail.com> wrote in message
RMGdnVrKy_3mQWLcRVn-2A@wideopenwest.com">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
>
- Re: unicode files created with windows notepad, (continued)
Re: unicode files created with windows notepad,
David Ellis <=