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

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

Re: Decode the octets with hexadecimal values.


From: Eli Zaretskii
Subject: Re: Decode the octets with hexadecimal values.
Date: Sat, 20 May 2023 12:44:09 +0300

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Sat, 20 May 2023 16:51:19 +0800
> Cc: help-gnu-emacs@gnu.org
> 
> On Sat, May 20, 2023 at 4:18 PM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > > Date: Sat, 20 May 2023 15:37:42 +0800
> > > Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
> > >
> > > But Emacs is also extremely powerful, I expect someone here can give
> > > an Emacs-based solution.
> >
> > We have quoted-printable-decode-region.
> 
> But the result will be the one shown in the attached screenshot.

By default, the result is a unibyte string, you need to decode it to
get readable text:

  (quoted-printable-decode-region FROM TO 'utf-8)

(Do you read the doc strings of the functions before you use them?  If
not, you should: that's what they are there for.)



reply via email to

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