Skip to content
This repository

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

davesann opened this Issue December 23, 2011 · 1 comment

2 participants

davesann Chas Emerick

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)))```
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.