[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: |
Wed, 2 Feb 2005 14:27:26 -0600 |
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" <ihs_4664@yahoo.com> wrote in message
36ccmeF4v995vU1@individual.net">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
Re: unicode files created with windows notepad, David Ellis, 2005/02/03