From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: `decode-coding-string' question Date: Fri, 07 Jul 2006 21:56:04 +0200 Message-ID: <85r70x5gvf.fsf@lola.goethe.zz> References: <200607040035.01379.pogonyshev@gmx.net> <200607062334.21288.pogonyshev@gmx.net> <200607071905.04387.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152310293 1792 80.91.229.2 (7 Jul 2006 22:11:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Jul 2006 22:11:33 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Eli Zaretskii , emacs-devel@gnu.org Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Sat Jul 08 00:11:30 2006 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FyyXg-0004o3-8D for sf-cc-mode-help@m.gmane.org; Sat, 08 Jul 2006 00:11:20 +0200 Original-Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id 70318125C9; Fri, 7 Jul 2006 15:11:19 -0700 (PDT) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1FyyXd-0007W0-5Z for cc-mode-help@lists.sourceforge.net; Fri, 07 Jul 2006 15:11:17 -0700 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:RC4-SHA:128) (Exim 4.44) id 1FyyXc-00046b-RJ for cc-mode-help@lists.sourceforge.net; Fri, 07 Jul 2006 15:11:17 -0700 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FyyXa-0006hU-E7; Fri, 07 Jul 2006 18:11:14 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 6A6D11C40B72; Fri, 7 Jul 2006 21:56:04 +0200 (CEST) Original-To: Paul Pogonyshev In-Reply-To: <200607071905.04387.pogonyshev@gmx.net> (Paul Pogonyshev's message of "Fri, 7 Jul 2006 19:05:04 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: cc-mode-help-bounces@lists.sourceforge.net Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:3555 gmane.emacs.devel:56746 Archived-At: Paul Pogonyshev writes: > Eli Zaretskii wrote: >> > To know what character is encoded by this C sequence, I first translate >> > strings "\xc2" and "\xa9" to the appropriate (undecoded!) characters. >> > The resulting string of length 2 is encoded in UTF-8 and I decode it >> > to receive the copyright character or whatever. >> >> Why not use `(decode-coding-string "\xc2\xa9" 'utf-8)' right away? It >> gives me the right character directly. > > Because you underquoted the string. It is actually `(decode-coding-string > "\\xc2\\xa9" 'utf-8)' and does nothing... Because you overquoted the string... -- David Kastrup, Kriemhildstr. 15, 44793 Bochum Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642