Hi there!
I'm wondering why ClojureScript seems to handle international characters differently from Clojure.
Simple example in Clojure (= my preferred behaviour):
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