Of course, escape-string always works. But this is not my point. Since "esc" is the shortcut of "escape-string", hope "esc" will be better.

Best,
Kenneth


On Tue, Jul 31, 2012 at 10:05 AM, Stas Boukarev <stassats@gmail.com> wrote:
Kenneth Yan <yanxiaoguang@gmail.com> writes:

> Dear all,
>
> Please pay attention to the issue below.
>
> (with-html-output-to-string (*standard-output* nil :prologue nil)
>   (:input :type "text" :name (escape-string "你好") :readonly "readonly"
>           :value (esc "你好")))
>
> "<input type=\"text\" name=\"&#20320;&#22909;\"
> readonly=\"readonly\"&#20320;&#22909; value=\"&#20320;&#22909;\">"
Try escape-string instead.

--
With best regards, Stas.

_______________________________________________
cl-who-devel site list
cl-who-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-who-devel