guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to decode uri containing non-ascii characters?


From: Mark H Weaver
Subject: Re: how to decode uri containing non-ascii characters?
Date: Fri, 02 Nov 2012 12:45:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Kejia柯嘉 <address@hidden> writes:
> no error message, it just restored to several '?'. thank you.

It sounds like your locale has not been set.  The locale is set
automatically during an interactive Guile session, but within a script
you must manually set it using (setlocale LC_ALL "").

     Mark

>
> 在 2012年11月1日星期四,nalaginrut 写道:
>
>     On Thu, 2012-11-01 at 20:03 -0400, Kejia柯嘉 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"))
>     小scheme@(guile-user)>
>     --------------end---------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]