Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
davesann opened this Issue · 1 comment

2 participants

@davesann

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)))```
@davesann davesann closed this
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.