From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Fixing Gnus, and string encoding question Date: Sat, 06 Apr 2019 09:20:52 +0300 Message-ID: <83d0lzbqnv.fsf@gnu.org> References: <87d0m0qivv.fsf@ericabrahamsen.net> <87zhp3swit.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="40232"; mail-complaints-to="usenet@blaine.gmane.org" Cc: npostavs@gmail.com, emacs-devel@gnu.org To: Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 06 08:21:32 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCeho-000ALu-5A for ged-emacs-devel@m.gmane.org; Sat, 06 Apr 2019 08:21:32 +0200 Original-Received: from localhost ([127.0.0.1]:51189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCehm-0002gW-US for ged-emacs-devel@m.gmane.org; Sat, 06 Apr 2019 02:21:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCehg-0002g7-Lk for emacs-devel@gnu.org; Sat, 06 Apr 2019 02:21:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCehM-0000pg-AF; Sat, 06 Apr 2019 02:21:04 -0400 Original-Received: from [176.228.60.248] (port=3476 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hCehL-0002XH-Ix; Sat, 06 Apr 2019 02:21:04 -0400 In-reply-to: <87zhp3swit.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Fri, 05 Apr 2019 19:22:18 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235018 Archived-At: > From: Eric Abrahamsen > Date: Fri, 05 Apr 2019 19:22:18 -0700 > Cc: Emacs developers > > > (decode-coding-string > > "nnml:\343\203\206\343\202\271\343\203\210" 'utf-8) ;=> "nnml:テスト" > > > > (decode-coding-string > > (symbol-name (read "nnml:\343\203\206\343\202\271\343\203\210")) > > 'utf-8) ;=> "nnml:テスト" > > No, unfortunately -- that would make everything much easier. Eventually > the idea will be to decode the strings into plain utf-8-emacs, but for > now I'm stuck keeping them in this weird half-state. I literally need a > conversion between the two versions above. Why do you need to keep these strings undecoded?