Skip to content

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

davesann opened this Issue Dec 24, 2011 · 1 comment

2 participants


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]
    string #"\\x(..)" 
    (fn [m] (str (char (Integer/parseInt (second m) 16))))))

(defn my-read-string [s]
  (read-string (unescape s)))```
@davesann davesann closed this Dec 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.