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

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

Re: how to find encoding violations in Emacs buffer?


From: Eli Zaretskii
Subject: Re: how to find encoding violations in Emacs buffer?
Date: Wed, 13 Dec 2006 06:26:32 +0200

> From: address@hidden
> Date: 12 Dec 2006 10:18:13 -0800
> 
> from time to time, a buffer gets some spurious character in and Emacs
> refuses to save it in the correct encoding. So I am presented with the
> choice of other different encodings.
> 
> However, in most of the cases, I know that the file *should* be UTF-8
> encoded.  So I would rather like to find out where the offending
> character is and correct it, instead of choosing a different encoding.
> 
> Is there any function/package/elisp hack to find/highlight characters
> in a buffer that Emacs could not encode as UTF-8?

Emacs 22 already shows the problematic characters.  Please look closer
at the text of the buffer where Emacs tells you why it needs your
decision about the encoding.




reply via email to

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