ibdknox/pinot — Issue #16: pinot remotes cannot receive (to clojure) some unicode characters in strings
Author: davesann
Created: 2011-12-24 01:03:07+00:00
State: open

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