From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Decode the octets with hexadecimal values. Date: Sat, 20 May 2023 12:44:09 +0300 Message-ID: <83pm6vs5g6.fsf@gnu.org> References: <83ttw7s9fq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21820"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 20 11:45:03 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q0J94-0005Ww-Tq for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 May 2023 11:45:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0J8b-0001u3-Tr; Sat, 20 May 2023 05:44:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0J8W-0001tf-33 for help-gnu-emacs@gnu.org; Sat, 20 May 2023 05:44:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0J8V-0005hP-IP for help-gnu-emacs@gnu.org; Sat, 20 May 2023 05:44:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=PegqCuFNSKC2iSGl9gf+966Iw4wZiRp5VHUAGtA7218=; b=G/S63Tr71YREoo38ZXEW EZHSrazLtAf6JrSmXCWS46fkfBDkB8WsNZ5gK43bAqhyXRj9QFWS07/fYIu2fN/9HNNSJGEl54Cwy Dy/9PKp2epH/DMfaaddieCNc6LbV+Ox9hGTwLXlAazBnWZ4FG+cLJkUezLQkRRbEZUJDN1DlGf334 xBaYHzQbK4a0Sia6Gvx571DdhjbZ/A90HF/SAOWNsOozXHWYTLSsVLti0H5rf1r8TG2rBkqmzvBF9 SU3pwJVppf7MwPtRUYb8eY40UVBNUrslk87q+wOerQEO2f+2DLg4FVQuF4OjshVMSVnNiSU+j+N7f IymjNt2NwDbhyw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0J7w-000872-Tq for help-gnu-emacs@gnu.org; Sat, 20 May 2023 05:44:21 -0400 In-Reply-To: (message from Hongyi Zhao on Sat, 20 May 2023 16:51:19 +0800) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143663 Archived-At: > From: Hongyi Zhao > 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 wrote: > > > > > From: Hongyi Zhao > > > Date: Sat, 20 May 2023 15:37:42 +0800 > > > Cc: help-gnu-emacs > > > > > > 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.)