Hi there!

I'm wondering why ClojureScript seems to handle international characters 
differently from Clojure.

Simple example in Clojure (= my preferred behaviour):
user=> (str "ø")
"ø"

The same example in ClojureScript:
ClojureScript:cljs.user>   #_=> (str 'ø')
"\xF8'"

Can anyone explain to me why ClojureScript behaves like that?

I need to send strings from ClojureScript to a remote service, so I need 
the output from ClojureScript to be straight UTF-8 encoded strings.

Because when the (Clojure based) remote service receives the string from 
ClojureScript it doesn't decode it correctly with read-string:
Exception: java.lang.RuntimeException: Unsupported escape character: \x

Anyone?

Thanks.

Best regards,
Henrik

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to