Re: character encoding issue in compiled .js

2011-08-04 Thread David Powell
The character at the beginning of the string isn't a corrupt ':', it is a Unicode control character '\uFDD0' which seems to be output as an internal detail so that clojurescript can distinguish keywords and strings. The clojurescript compiler outputs javascript as utf-8. So technically,

Re: character encoding issue in compiled .js

2011-08-02 Thread HaiColon
I've encountered this problem too, on Ubuntu 11.04 with Emacs 23.2.1 and the ClojureScript repo cloned with Git 1.7.4.1. For me, using a meta tag doesn't resolve the problem though. Without a meta tag that sets the encoding to UTF-8, an i with two dots above it is diplayed. With the meta tag

character encoding issue in compiled .js

2011-08-01 Thread Jason Hickner
I'm seeing non-utf8 characters in my compiled .js even though my .cljs source file is utf8. Here's a very short example demonstrating the issue: https://gist.github.com/1116419 Notice that the colon at the start of :foo is being munged during compilation. This causes errors when the .js is