From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#24117: 25.1; url-http-create-request: Multibyte text in HTTP request Date: Tue, 09 Aug 2016 08:48:44 +0900 Organization: Emacsen advocacy group Message-ID: References: <83d1ltq3p6.fsf@gnu.org> <83popsocg8.fsf@gnu.org> <7fb3540a-7b74-68cf-2c63-66474de26640@yandex.ru> <83mvkvmbv2.fsf@gnu.org> <27168f12-32d2-cb38-45c0-27d3339c75aa@yandex.ru> <83twf0lb5s.fsf@gnu.org> <871t1zcrnn.fsf@lifelogs.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1470700162 14789 195.159.176.226 (8 Aug 2016 23:49:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2016 23:49:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (i686-pc-cygwin) Cc: stakemorii@gmail.com, larsi@gnus.org, 24117@debbugs.gnu.org To: dgutov@yandex.ru Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 09 01:49:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWuIG-0003jL-F2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Aug 2016 01:49:16 +0200 Original-Received: from localhost ([::1]:60901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWuID-0006k0-7a for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Aug 2016 19:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWuI7-0006jq-1L for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2016 19:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWuI2-0006lL-3O for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2016 19:49:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWuI2-0006lC-0f for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2016 19:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bWuI1-0001tx-SZ for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2016 19:49:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Aug 2016 23:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24117 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24117-submit@debbugs.gnu.org id=B24117.14707001347293 (code B ref 24117); Mon, 08 Aug 2016 23:49:01 +0000 Original-Received: (at 24117) by debbugs.gnu.org; 8 Aug 2016 23:48:54 +0000 Original-Received: from localhost ([127.0.0.1]:60460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWuHt-0001tY-NI for submit@debbugs.gnu.org; Mon, 08 Aug 2016 19:48:53 -0400 Original-Received: from mail-hampton.hostforweb.net ([205.234.186.191]:53988 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWuHr-0001tK-6N for 24117@debbugs.gnu.org; Mon, 08 Aug 2016 19:48:52 -0400 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:62343 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1bWuHi-003pHh-VC; Mon, 08 Aug 2016 18:48:44 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:dFqt/FLgRdnfB3LsFtzsffFBGwc= X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121988 Archived-At: On Mon, 08 Aug 2016 09:32:44 -0400, Ted Zlatanov wrote: > CC-ed Katsumi Yamaoka since he may have some feedback as well. Well, I'm not familiar with url-*.el but there seems to be no function to encode a url containing non-ASCII characters such as: "http://=D0=B1=D0=B0=D0=BD=D0=BA=D0=B8.=D1=80=D1=84/" In emacs-w3m[1] there are some encoder functions: ;; An encoder used for a full url string: (w3m-url-transfer-encode-string "http://=D0=B1=D0=B0=D0=BD=D0=BA=D0=B8.=D1= =80=D1=84/") =3D> "http://xn--80abwho.xn--p1ai/" ;; An encoder used for a string that is a part of url: (concat "https://ja.wikipedia.org/wiki/" (w3m-url-encode-string "=E6=97=A5=E6=9C=AC=E8=AA=9E=E3=83=89=E3=83=A1=E3= =82=A4=E3=83=B3=E5=90=8D")) =3D> "https://ja.wikipedia.org/wiki/%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%83%89%E= 3%83%A1%E3%82%A4%E3%83%B3%E5%90%8D" Those two encoded urls will work. [1] ,---- | % cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot login | CVS password: # No password is set. Just hit Enter/Return key. | % cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot co emacs-w3m `----