[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to find the character breaking the file encoding?
From: |
Marcin Borkowski |
Subject: |
Re: How to find the character breaking the file encoding? |
Date: |
Sat, 08 Feb 2020 12:36:22 +0100 |
User-agent: |
mu4e 1.1.0; emacs 27.0.50 |
On 2020-02-05, at 04:09, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> 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.
Thanks Stefan and Óscar. Before you answered me, I killed the buffer
and visited the file again, and the problem disappeared. Go figure...
Thanks,
--
Marcin Borkowski
http://mbork.pl