From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.user Subject: Re: how to decode uri containing non-ascii characters? Date: Fri, 2 Nov 2012 09:42:37 -0400 Message-ID: References: <1351822964.27490.3.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec54b4a7013048604cd834fcc X-Trace: ger.gmane.org 1351863780 29447 80.91.229.3 (2 Nov 2012 13:43:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2012 13:43:00 +0000 (UTC) Cc: "guile-user@gnu.org" To: =?UTF-8?B?S2VqaWHmn6/lmIk=?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Nov 02 14:43:09 2012 Return-path: Envelope-to: guile-user@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 1TUHWd-0005Jt-R5 for guile-user@m.gmane.org; Fri, 02 Nov 2012 14:43:08 +0100 Original-Received: from localhost ([::1]:44283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUHWV-0007HF-8U for guile-user@m.gmane.org; Fri, 02 Nov 2012 09:42:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUHWK-0006x2-AS for guile-user@gnu.org; Fri, 02 Nov 2012 09:42:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUHWA-00016g-N0 for guile-user@gnu.org; Fri, 02 Nov 2012 09:42:48 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:49072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUHWA-00016X-H5 for guile-user@gnu.org; Fri, 02 Nov 2012 09:42:38 -0400 Original-Received: by mail-ob0-f169.google.com with SMTP id va7so4003609obc.0 for ; Fri, 02 Nov 2012 06:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=6ZOAFFargVroUsXQIJtLMvZC+JBp1RbT42RX//cx7q4=; b=yEtchopBY+QXlW1D3kd95o5ddySyuQpVJzDHBwHNpOobiULY+QHD8NFXlxLM4xVxXG txW4FmIAMbGmCon5cdWRG13esLK8IllZ0QvxTlRfM1xw6oBnMlCWOD35VjXYUwA5j+/s apSwVOoxaIdvoZOxSuQVbu6BzdkwFGNZ9EvycOlpV/V+C63JhdcmvvovMaA3cjR8uMlq 8SYPaYXiMNfimz2Ltpd96gBS5bEuwdiHWx4EMqw+VT/CQQ7P/UP9AtnBlElRUrySMAT4 I5y033CFovxP8PxZwPNS43U0f0I9abIWhKThhX5izvF81D3L2nuR4XmN6hl7EUxwzqBg V73A== Original-Received: by 10.60.171.41 with SMTP id ar9mr1443925oec.16.1351863757898; Fri, 02 Nov 2012 06:42:37 -0700 (PDT) Original-Received: by 10.76.120.236 with HTTP; Fri, 2 Nov 2012 06:42:37 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 7E976fbeuoveoBb9vrA3rJRlJwY X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.214.169 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9641 Archived-At: --bcaec54b4a7013048604cd834fcc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It may be that Guile is decoding it correctly, but your terminal program is unable to display the characters. At least, I often see '?' in place of characters that my terminal can't display. I'm not sure how to test this right now, though. Noah On Fri, Nov 2, 2012 at 8:43 AM, Kejia=E6=9F=AF=E5=98=89 = wrote: > hi balafonrut, > > no error message, it just restored to several '?'. thank you. > > =E5=9C=A8 2012=E5=B9=B411=E6=9C=881=E6=97=A5=E6=98=9F=E6=9C=9F=E5=9B=9B= =EF=BC=8Cnalaginrut =E5=86=99=E9=81=93=EF=BC=9A > > On Thu, 2012-11-01 at 20:03 -0400, Kejia=E6=9F=AF=E5=98=89 wrote: >> > hi all, >> > >> > in an html textarea, i input some chinese text, and receive the text >> from >> > the http request body. i tried to use uri-decode to restore the text, >> but >> > failed: >> > (display (uri-decode "%E5%B0%8F")) >> > >> >> It's OK in my system. >> --------------cut--------------- >> scheme@(guile-user)> (display (uri-decode "%E5%B0%8F")) >> =E5=B0=8Fscheme@(guile-user)> >> --------------end--------------- >> >> Can you show the error message? >> >> > any suggestions? >> > >> > thanks a lot for your helps. >> > >> > kejia >> > >> > =E2=98=B5=E2=98=AF=E2=98=B2 >> >> >> > > -- > > =E2=98=B5=E2=98=AF=E2=98=B2 > > --bcaec54b4a7013048604cd834fcc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It may be that Guile is decoding it correctly, but your terminal program is= unable to display the characters. At least, I often see '?' in pla= ce of characters that my terminal can't display.

I'm not sure how to test this right now, though.

Noah


= On Fri, Nov 2, 2012 at 8:43 AM, Kejia=E6=9F=AF=E5=98=89 &= lt;w.kejia@gmail.com= > wrote:
hi balafonrut,

no error message, it j= ust restored to several '?'. thank you.

=E5=9C= =A8 2012=E5=B9=B411=E6=9C=881=E6=97=A5=E6=98=9F=E6=9C=9F=E5=9B=9B=EF=BC=8Cn= alaginrut =E5=86=99=E9=81=93=EF=BC=9A

On Thu, 2012-11-01 at 20:03 -0400, Kejia=E6=9F=AF=E5=98=89 wrote:
> hi all,
>
> in an html textarea, i input some chinese text, and receive the text f= rom
> the http request body. i tried to use uri-decode to restore the text, = but
> failed:
> (display (uri-decode "%E5%B0%8F"))
>

It's OK in my system.
--------------cut---------------
scheme@(guile-user)> (display (uri-decode "%E5%B0%8F"))
=E5=B0=8Fscheme@(guile-user)>
--------------end---------------

Can you show the error message?

> any suggestions?
>
> thanks a lot for your helps.
>
> kejia
>
> =E2=98=B5=E2=98=AF=E2=98=B2




--

=E2=98=B5=E2=98=AF=E2=98=B2
=

--bcaec54b4a7013048604cd834fcc--