unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "David Ellis" <ddellis@mail.com>
Subject: Re: unicode files created with windows notepad
Date: Thu, 3 Feb 2005 07:50:38 -0600	[thread overview]
Message-ID: <-c2dncWbXMncsZ_fRVn-3g@wideopenwest.com> (raw)
In-Reply-To: RMGdnVrKy_3mQWLcRVn-2A@wideopenwest.com

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 
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
> 

      parent reply	other threads:[~2005-02-03 13:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-01 19:45 unicode files created with windows notepad David Ellis
2005-02-02  4:40 ` Eli Zaretskii
2005-02-02  8:44   ` Ismael Valladolid Torres
2005-02-02 11:03 ` Wolfgang Jeltsch
2005-02-02 16:16 ` Kevin Rodgers
2005-02-02 18:25   ` Eli Zaretskii
2005-02-02 20:27   ` David Ellis
     [not found] ` <mailman.415.1107320402.2841.help-gnu-emacs@gnu.org>
2005-02-02 20:04   ` David Ellis
2005-02-03  4:54     ` Eli Zaretskii
     [not found]     ` <mailman.630.1107408460.2841.help-gnu-emacs@gnu.org>
2005-02-03 12:50       ` David Ellis
2005-02-03 20:59         ` Jason Rumney
2005-02-03 13:50 ` David Ellis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=-c2dncWbXMncsZ_fRVn-3g@wideopenwest.com \
    --to=ddellis@mail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).