help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: encoding used by those #some.txt# backup?


From: Eli Zaretskii
Subject: Re: encoding used by those #some.txt# backup?
Date: Mon, 19 Jan 2009 22:37:44 +0200

> From: Xah Lee <address@hidden>
> Date: Mon, 19 Jan 2009 10:30:34 -0800 (PST)
> 
> it seems emacs's crash backup files saved my utf-8 files in a
> different encoding.

It's the internal representation of characters used by Emacs.  Since
auto-save files must be always encoded correctly, the only safe way of
doing that is to dump the internal representation.

> If i have a crash, then opening the #x.txt# file the content is:
> 
> \234\364\370\261 something
> 
> since my files have lots of unicode, this renders those auto-save not
> usable.

M-x recover-file RET should DTRT.

> is this a bug or am i missing some file encoding for this type of
> backups?

M-x recover-file RET should decode them correctly.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]