From yanxiaoguang at gmail.com Wed Aug 1 00:56:40 2012 From: yanxiaoguang at gmail.com (Kenneth Yan) Date: Wed, 1 Aug 2012 08:56:40 +0800 Subject: [cl-who-devel] The problem with "esc" In-Reply-To: <873948znv6.fsf@gmail.com> References: <873948znv6.fsf@gmail.com> Message-ID: 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 wrote: > Kenneth Yan 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 "??"))) > > > > " > readonly=\"readonly\"你好 value=\"你好\">" > Try escape-string instead. > > -- > With best regards, Stas. > > _______________________________________________ > cl-who-devel site list > cl-who-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-who-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: From stassats at gmail.com Wed Aug 1 03:16:34 2012 From: stassats at gmail.com (Stas Boukarev) Date: Wed, 01 Aug 2012 07:16:34 +0400 Subject: [cl-who-devel] The problem with "esc" In-Reply-To: (Kenneth Yan's message of "Wed, 1 Aug 2012 08:56:40 +0800") References: <873948znv6.fsf@gmail.com> Message-ID: <87r4rr714d.fsf@gmail.com> Kenneth Yan 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 ...)) -- With best regards, Stas.