SHARE
TWEET

Untitled

a guest Mar 3rd, 2015 224 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (require '[cognitect.transit :as transit])
  2. (import [java.io ByteArrayInputStream ByteArrayOutputStream])
  3.  
  4. (def out (ByteArrayOutputStream. 4096))
  5. (def writer (transit/writer out :json))
  6. (transit/write writer "ü")
  7. (.toString out)
  8. => "[\"~#'\",\"ü\"]"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top