From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Decode the octets with hexadecimal values. Date: Sat, 20 May 2023 18:53:31 +0800 Message-ID: References: <83ttw7s9fq.fsf@gnu.org> <83pm6vs5g6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26708"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 20 12:54:21 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 1q0KE8-0006hr-Hv for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 May 2023 12:54:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0KDf-0001z2-4z; Sat, 20 May 2023 06:53:51 -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 1q0KDe-0001yr-4C for help-gnu-emacs@gnu.org; Sat, 20 May 2023 06:53:50 -0400 Original-Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0KDa-0000Ie-2T; Sat, 20 May 2023 06:53:49 -0400 Original-Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-96f6a9131fdso220220266b.1; Sat, 20 May 2023 03:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684580023; x=1687172023; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NLIL/P/MhX+B3n51PW3FvkKM87YlIrjj8gHEDe1sGns=; b=pXQ87wWYqxf86Hz8AeSEr6XDZIuLMEaiiJhZSk8De+a0Z9mOLy+I25lnbBFhoLleiG Cp/29gt+CERkP6djOPtyM/7FhX0CupkOuYjVhsz1dmS6Wo1Wic+aPd73VxOX7lqlOVw1 XWMiedUh1Nv7lXNgKHso9oP7e+rPfrK6u1yKUgOFbS6Mcv8VdsMzYkdxB0YmKK0AkNhw O6xoKogQySEk58WT75kZUt3iPKgCvbBEvuTK0SwwgTbcKpzzWC9B4qK3mrLO4TF5XSNS d4Qb8L+viTQhMp0Zaaz/Ro2X9XeAAyHG5fk9E4ZOUqGZHlnkaOOlqsUoniG4JZpwbnU3 4TCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684580023; x=1687172023; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NLIL/P/MhX+B3n51PW3FvkKM87YlIrjj8gHEDe1sGns=; b=WEYjlwtDVzYcMHumYcIc8LzuXU9m5Uow/pvIkyJfTK9HcacMUyClHGRHJgiEJ6Lztd 3ZZGQUxPmEWLdH0mR8+B4zQVli1EPouCJ25UnubU2iDqOWN0xq5xmC5T43+Cygrr+cL+ eFXa8WI9UZywh84RICpyceYIjuPwJh3znY506zFkwvwG/Uog4wIuq7nLfDLayDgOOh5d S7Z44GR8WrcHFubNqu29QQ0FVVWN3eLxq7780ZF/9cEoiDgLTlu3W1ek9CImsNcyn4eT hEy3ymiXDHY9b4U8fV92pAAfrSwF9e0HUZM1TMQ/ShJ71QaA74INOw1gmgy/lzM8dtxd acLQ== X-Gm-Message-State: AC+VfDxJ1MpdgKOXkV/fBVF6DCi1M83LJTmkWxL0WteK9fCje2sLwKKg 1FlVdKyQi1+hkaDZGyAeiPRg/4sHGs6gbGLngn9TvN3XSlBUr/abFSo= X-Google-Smtp-Source: ACHHUZ5jO5XL74jQgx1GepQEou3Wmf6q4OqGZe6sGy+UkJVZQwiYDtD/L4x0SAdv/kwhBvYlB3fEbf2jHPwPxd/hmtg= X-Received: by 2002:a17:906:9b86:b0:94e:54ec:1a10 with SMTP id dd6-20020a1709069b8600b0094e54ec1a10mr5622369ejc.29.1684580022961; Sat, 20 May 2023 03:53:42 -0700 (PDT) In-Reply-To: <83pm6vs5g6.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:143664 Archived-At: On Sat, May 20, 2023 at 5:45=E2=80=AFPM Eli Zaretskii wrote: > > > 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=E2=80=AFPM Eli Zaretskii wr= ote: > > > > > > > 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 giv= e > > > > 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.) Thank you for your valuable hints. The following steps do the trick: 1. C-x RET c utf-8-unix RET 2. Select/mark/highlight the text in question, and then M-x quoted-printable-decode-region RET Best, Zhao