Re: escaping characters

2012-11-01 Thread Kejia柯嘉
hi all, for an example, when a program reads in a latex source, is there an escape function that can rewrite all `\' to `\\', `"' to `\"', and so on? thank you. kejia ☵☯☲ 2012/10/31 Ludovic Courtès : > Hi, > > Kejia柯嘉 skribis: > >> is there a function that can escape of a string every charac

Re: escaping characters

2012-11-01 Thread Thien-Thi Nguyen
() Kejia柯嘉 () Thu, 1 Nov 2012 10:24:52 -0400 for an example, when a program reads in a latex source, is there an escape function that can rewrite all `\' to `\\', `"' to `\"', and so on? This kind of escaping for backslash and double-quote (and other chars, depending on Guile flavor) i

Re: escaping characters

2012-11-01 Thread Noah Lavine
This is related to what ttn said, but I am a bit confused by the request. Normally when you read *in* something like LaTeX source, you convert \\ to \, and similar things. Then when you write *out* LaTeX source, you might convert \ to \\. This is useful if, for instance, you want Guile to automatic

how to decode uri containing non-ascii characters?

2012-11-01 Thread Kejia柯嘉
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 ☵☯☲

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

2012-11-01 Thread 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. ---