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

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

Re: How to search for characters displayed as octal codes in the buffer?


From: Perry Smith
Subject: Re: How to search for characters displayed as octal codes in the buffer?
Date: Tue, 16 Jul 2019 19:30:27 -0500

> On Jul 14, 2019, at 9:50 AM, ndame <emacsuser@freemail.hu> wrote:
> 
> Sometimes I have unprintable characters in the buffer which display with an 
> octal code (e.g. \232). instead of a character (text copied from elsewhere, 
> etc.) How can I find these without knowing the exact codes?
> 
> I'd like to find all such places in the buffer where a character appears with 
> an octal code, but I have UTF characters too in the buffer which display 
> properly, so using nonascii is not the answer.

It sounds like you have characters that do not fit into the encoding that the 
buffer is selected for.  I can’t think of a viable way to “search” for these.

You might look at Chapter 22[1] of the emacs manual.  And… maybe this wiki 
page[2] might help.

[1] https://ftp.gnu.org/old-gnu/Manuals/emacs-20.7/html_chapter/emacs_22.html
[2] https://www.emacswiki.org/emacs/FindingNonAsciiCharacters




reply via email to

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