From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: eww doesn't decode %AA%BB%CC URL names Date: Thu, 24 Dec 2015 22:17:10 +0100 Message-ID: <87fuyrpmw9.fsf@gnus.org> References: <83r3n0llkt.fsf@gnu.org> <87vb7nsq1g.fsf@gnus.org> <83ziwzmzyp.fsf@gnu.org> <8760znslig.fsf@gnus.org> <83twn7myin.fsf@gnu.org> <87bn9fr59a.fsf@gnus.org> <87vb7npogq.fsf@gnus.org> <87k2o3pnhz.fsf@gnus.org> <83h9j7mu13.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1450991886 13658 80.91.229.3 (24 Dec 2015 21:18:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Dec 2015 21:18:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 24 22:17:50 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aCDGf-0005nF-Tu for ged-emacs-devel@m.gmane.org; Thu, 24 Dec 2015 22:17:50 +0100 Original-Received: from localhost ([::1]:33450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCDGf-0005Oo-A1 for ged-emacs-devel@m.gmane.org; Thu, 24 Dec 2015 16:17:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCDGS-0005Oe-MH for emacs-devel@gnu.org; Thu, 24 Dec 2015 16:17:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCDGP-0005g3-Cp for emacs-devel@gnu.org; Thu, 24 Dec 2015 16:17:36 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:36684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCDGP-0005fe-6S; Thu, 24 Dec 2015 16:17:33 -0500 Original-Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aCDG3-0004Mz-3q; Thu, 24 Dec 2015 22:17:11 +0100 In-Reply-To: <83h9j7mu13.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 24 Dec 2015 23:11:20 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aCDG3-0004Mz-3q MailScanner-NULL-Check: 1451596631.48542@Tn3DwQjrHiGX1baMzOxvbw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196805 Archived-At: Eli Zaretskii writes: > If you want to check that STRING can be encoded in CODING, do this: > > (member CODING (find-coding-systems-string STRING)) > > and see if the result is non-nil. Hm: (find-coding-systems-string "a") =3D> (undecided) (find-coding-systems-string "=A7=B3=A7=D6=A7=E2=A7=D5=A7=E8=A7=D6") =3D> (chinese-iso-8bit japanese-shift-jis iso-2022-jp utf-8 korean-iso-8bit= euc-jis-2004 japanese-iso-8bit iso-2022-jp-2004 cp855 windows-1251 koi8-t = koi8-u cp866 koi8-u cyrillic-koi8 cyrillic-iso-8bit chinese-gb18030 chinese= -gbk chinese-big5-hkscs chinese-hz utf-7 iso-2022-kr iso-2022-jp-2 iso-2022= -cn-ext iso-2022-cn utf-16 utf-16be-with-signature utf-16le-with-signature = utf-16be utf-16le compound-text-with-extensions compound-text iso-2022-7bit= utf-8-auto utf-8-with-signature emacs-mule raw-text iso-2022-8bit-ss2 iso-= 2022-7bit-lock eucjp-ms korean-cp949 japanese-shift-jis-2004 japanese-iso-7= bit-1978-irv japanese-cp932 pt154 mik cp1125 cyrillic-alternativnyj utf-7-i= map utf-8-emacs prefer-utf-8 no-conversion ctext-no-compositions iso-2022-7= bit-lock-ss2 iso-2022-7bit-ss2) Wowza. Ok, I think I should now be able to create the function in question. Thanks for all the help. :-) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no