emacs-devel
[Top][All Lists]
Advanced

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

Re: 26.1.50; Emacs can't decode the text file on opening the file, but c


From: Phil Sainty
Subject: Re: 26.1.50; Emacs can't decode the text file on opening the file, but can decode it on revert-buffer
Date: Mon, 5 Nov 2018 22:39:45 +1300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 5/11/18 10:00 PM, Zhang Haijun wrote:
> On 11/05/2018 01:13 AM, Eli Zaretskii wrote:
>> They are not invalid bytes, they are zero bytes.  You can search for
>> them like this:
>>
>>    C-s C-q C-SPC
>
> I mean chars like ^@, ^H and \342\200\230. How to search them?

^@ is the null char and Eli just showed you how to search for it.

Similarly, C-s C-q C-h will search for a ^H char.

Assuming \342\200\230 is three octal characters then, I would probably
resort to editing the search string and using `insert-char':

C-s M-e
C-x 8 RET #o342 RET
etc...

If you can *see* an instance of the character already, you might just
move point to that character and use C-s C-w (and maybe a bit of C-M-w
if that grabs too many chars).

Or if you mean "any non-ascii character" then the regexp [^[:ascii:]]
will match those.


-Phil




reply via email to

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