all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: grivet <grivet@cnrs-orleans.fr>
To: help-gnu-emacs@gnu.org
Subject: non-ASCII characters in auto-save files
Date: Mon, 25 Jun 2012 14:46:24 +0200	[thread overview]
Message-ID: <4FE85DA0.7080201@cnrs-orleans.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 1176 bytes --]

Hello,
I write a lot of text under WinXP/Emacs/Latex, in French. For some 
unknown reason, emacs sometimes crashes and
I am left with an auto-save file, say #myfile#.
My problem is that, in such a file, all non ASCII characters are 
mangled. I can open #myfile# in Emacs, but accented e's, for instance,
appear as \303\250 or as \201\250 and similarly for all accented letters.
If I try to save #myfile# to disk, Emacs telles me it cannot encode 
these characters. Here is the answer I get when I do C-uC-x = on one
of the offending chars:

c-u c-x =

         character:   (4194216, #o17777650, #x3fffa8)
preferred charset: eight-bit (Raw bytes 128-255)
        code point: 0xA8
            syntax: w     which means: word
       buffer code: #xA8
         file code: not encodable by coding system emacs-mule-unix
           display: no font available

I have two questions:
     - Can Emacs be persuaded to to encode auto-save files in a more 
useful manner ?
     - Is there a systematic way to convert #myfile# to iso-latin-9 (or 
iso-latin-1) code, other than painstakingly
searching and replacing offending chars ?

Thanks in advance for your time and help
JP Grivet



[-- Attachment #2: Type: text/html, Size: 2352 bytes --]

             reply	other threads:[~2012-06-25 12:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-25 12:46 grivet [this message]
2012-06-25 16:56 ` non-ASCII characters in auto-save files Peter Dyballa
     [not found] ` <mailman.3451.1340643405.855.help-gnu-emacs@gnu.org>
2012-06-25 22:40   ` Michael Heerdegen
2012-06-25 23:11     ` Peter Dyballa
     [not found] <mailman.3448.1340636607.855.help-gnu-emacs@gnu.org>
2012-06-25 23:21 ` Stefan Monnier
2012-06-26 10:13   ` grivet
2012-06-26 15:40     ` Eli Zaretskii
2012-06-27 11:52   ` Xah Lee
2012-06-27 16:44     ` Eli Zaretskii
     [not found]     ` <mailman.3571.1340815454.855.help-gnu-emacs@gnu.org>
2012-06-27 20:03       ` Xah Lee
2012-06-28  1:07         ` Stefan Monnier
2012-06-28  2:58           ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=4FE85DA0.7080201@cnrs-orleans.fr \
    --to=grivet@cnrs-orleans.fr \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.