Re: ClojureScript keywords

2011-09-02 Thread Stuart Campbell
Thanks David. I added to my HTML document (this is just a static test project) and it fixed the problem. Regards, Stuart On 2 September 2011 18:36, David Powell wrote: > Clojurescript represents symbols and keywords as strings with a one > character unicode prefix (as an implementation detail

Re: ClojureScript keywords

2011-09-02 Thread David Powell
Clojurescript represents symbols and keywords as strings with a one character unicode prefix (as an implementation detail). But, by default it outputs javascript as utf-8, and unless you are serving javascript from a server and have setup the headers accordingly, this will be misinterpreted by the

Re: ClojureScript keywords

2011-09-02 Thread Stuart Campbell
Please excuse the self-reply; Looking at the compiled version of (keyword?), I can see a line that appears to compare the first character of the keyword string against a multi-character string constant: cljs.core.keyword_QMARK_ = (function keyword_QMARK_(x){ var and__3574__auto2211 = goog.isS