* how to decode uri containing non-ascii characters?
@ 2012-11-02 0:03 Kejia柯嘉
2012-11-02 2:22 ` nalaginrut
0 siblings, 1 reply; 5+ messages in thread
From: Kejia柯嘉 @ 2012-11-02 0:03 UTC (permalink / raw)
To: guile-user
[-- Attachment #1: Type: text/plain, Size: 280 bytes --]
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"))
any suggestions?
thanks a lot for your helps.
kejia
☵☯☲
[-- Attachment #2: Type: text/html, Size: 425 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to decode uri containing non-ascii characters?
2012-11-02 0:03 how to decode uri containing non-ascii characters? Kejia柯嘉
@ 2012-11-02 2:22 ` nalaginrut
2012-11-02 12:43 ` Kejia柯嘉
0 siblings, 1 reply; 5+ messages in thread
From: nalaginrut @ 2012-11-02 2:22 UTC (permalink / raw)
To: Kejia柯嘉; +Cc: guile-user
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---------------
Can you show the error message?
> any suggestions?
>
> thanks a lot for your helps.
>
> kejia
>
> ☵☯☲
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to decode uri containing non-ascii characters?
2012-11-02 2:22 ` nalaginrut
@ 2012-11-02 12:43 ` Kejia柯嘉
2012-11-02 13:42 ` Noah Lavine
2012-11-02 16:45 ` Mark H Weaver
0 siblings, 2 replies; 5+ messages in thread
From: Kejia柯嘉 @ 2012-11-02 12:43 UTC (permalink / raw)
To: nalaginrut; +Cc: guile-user@gnu.org
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
hi balafonrut,
no error message, it just restored to several '?'. thank you.
在 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---------------
>
> Can you show the error message?
>
> > any suggestions?
> >
> > thanks a lot for your helps.
> >
> > kejia
> >
> > ☵☯☲
>
>
>
--
☵☯☲
[-- Attachment #2: Type: text/html, Size: 1074 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to decode uri containing non-ascii characters?
2012-11-02 12:43 ` Kejia柯嘉
@ 2012-11-02 13:42 ` Noah Lavine
2012-11-02 16:45 ` Mark H Weaver
1 sibling, 0 replies; 5+ messages in thread
From: Noah Lavine @ 2012-11-02 13:42 UTC (permalink / raw)
To: Kejia柯嘉; +Cc: guile-user@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]
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柯嘉 <w.kejia@gmail.com> wrote:
> hi balafonrut,
>
> no error message, it just restored to several '?'. thank you.
>
> 在 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---------------
>>
>> Can you show the error message?
>>
>> > any suggestions?
>> >
>> > thanks a lot for your helps.
>> >
>> > kejia
>> >
>> > ☵☯☲
>>
>>
>>
>
> --
>
> ☵☯☲
>
>
[-- Attachment #2: Type: text/html, Size: 1772 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to decode uri containing non-ascii characters?
2012-11-02 12:43 ` Kejia柯嘉
2012-11-02 13:42 ` Noah Lavine
@ 2012-11-02 16:45 ` Mark H Weaver
1 sibling, 0 replies; 5+ messages in thread
From: Mark H Weaver @ 2012-11-02 16:45 UTC (permalink / raw)
To: Kejia柯嘉; +Cc: guile-user
Kejia柯嘉 <w.kejia@gmail.com> 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---------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-02 16:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-02 0:03 how to decode uri containing non-ascii characters? Kejia柯嘉
2012-11-02 2:22 ` nalaginrut
2012-11-02 12:43 ` Kejia柯嘉
2012-11-02 13:42 ` Noah Lavine
2012-11-02 16:45 ` Mark H Weaver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).