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="你好" readonly="readonly"你好 value="你好">"
Best, Kenneth
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="你好" readonly="readonly"你好 value="你好">"
Try escape-string instead.
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="你好" readonly="readonly"你好 value="你好">"
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
Kenneth Yan yanxiaoguang@gmail.com writes:
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.
esc is a shortcut for (princ (escape-string ...))