Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pinot remotes cannot receive (to clojure) some unicode characters in strings #16

Closed
davesann opened this issue Dec 24, 2011 · 1 comment

Comments

@davesann
Copy link

Because strings are encoded by the goog libs using \xXX characters instead of \u00XX characters clj read-string cannot read these chars)

the following is an option to fix this:

(defn unescape [string]
  (s/replace 
    string #"\\x(..)" 
    (fn [m] (str (char (Integer/parseInt (second m) 16))))))

(defn my-read-string [s]
  (read-string (unescape s)))```
@cemerick
Copy link

You can track this ticket: http://dev.clojure.org/jira/browse/CLJS-400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants