Ian Price skribis:
> ;; make-char-quotator takes an alist of character + string pairs
> ;; the character is the one to escape, and the string its replacement
> ;; it returns a function of two arguments, a string to escape, and a
> ;; port to write to.
>
> (define my-weird-escaper
> (make-char-q
On Fri, 2012-11-02 at 16:54 +, Ian Price wrote:
> Kejia柯嘉 writes:
>
> > if i use the default web server of guile, where should i put static
> > html documents?
>
> Right now, I'd be tempted to suggest you let a "real" web server handle
> these, and reverse proxy to guile for the dynamic stuf
Hi,
Kejia柯嘉 skribis:
> 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?
So no, Guile doesn’t have any function related to TeX/LaTeX escaping.
Ludo’.
Kejia$B[I2E(B writes:
> hi,
>
> is there a function that can escape of a string every character which
> is an escape character?
>
> thanks a lot.
Oleg Kiselyov has a function called 'make-char-quotator' which, I think,
does what you want. Guile does not technically export it, but you can
acces
Kejia柯嘉 writes:
> if i use the default web server of guile, where should i put static
> html documents?
Right now, I'd be tempted to suggest you let a "real" web server handle
these, and reverse proxy to guile for the dynamic stuff only.
--
Ian Price -- shift-reset.com
"Programming is like pi
Ariel Rios writes:
> But I just cannot find a way to do this one guile and the documentation is
> not clear
> to me.
Lisovsky, one of the creators of sxpath, has a number of examples at
http://www.metapaper.net/lisovsky/query/examples/xpath/
Though, I have to agree, it would be nice to get bet
Kejia柯嘉 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日
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柯嘉 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