mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-08 05:27:35 +02:00
Setting utf-8 charset by default.
This commit is contained in:
parent
5ddef3a892
commit
09b1e3041c
1 changed files with 9 additions and 3 deletions
|
@ -220,6 +220,7 @@
|
|||
`(html
|
||||
(head
|
||||
(title "Snow")
|
||||
(meta (@ (charset . "utf-8")))
|
||||
(link (@ (type . "text/css")
|
||||
(rel . "stylesheet")
|
||||
(href . "/s/snow.css")))
|
||||
|
@ -255,7 +256,12 @@
|
|||
(let ((sexp? (equal? "sexp" (request-param request "fmt"))))
|
||||
(servlet-write
|
||||
request
|
||||
(if sexp?
|
||||
(call-with-current-continuation proc)
|
||||
(sxml->xml (proc (lambda (x) x)))))
|
||||
(cond
|
||||
(sexp?
|
||||
(call-with-current-continuation proc))
|
||||
(else
|
||||
(let ((res (sxml->xml (proc (lambda (x) x)))))
|
||||
(servlet-respond request 200 "OK"
|
||||
'((Content-Type . "text/html; charset=utf-8")))
|
||||
res))))
|
||||
(if sexp? (servlet-write request "\n"))))
|
||||
|
|
Loading…
Add table
Reference in a new issue