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

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

Re: How to find the character breaking the file encoding?


From: Stefan Monnier
Subject: Re: How to find the character breaking the file encoding?
Date: Tue, 04 Feb 2020 22:09:00 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> inserted a non-UTF-8 sequence of bytes there.  Is there any way Emacs
> can help me finding it (other than me manually bisecting the file until
> I find the offending place)?

I think you can do:

    C-x RET r utf-8 RET

to force reading it as utf-8.  And then

    C-x C-s

should complain about the problematic element with a buffer that shows
you the offender and lets you click on it to jump to its location.


        Stefan




reply via email to

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