Created
January 30, 2017 20:10
-
-
Save shlomiv/c763cca78dcc4062b22c0cdac49a9560 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def cps (map (fn[[a x]] (.displayName x)) (java.nio.charset.Charset/availableCharsets))) | |
(def s (slurp "test.txt")) | |
(time (with-open [w (io/writer "all-codes1")] | |
(doseq [f cps | |
t cps] | |
(try | |
(.write w (str f "->" t)) | |
(.write w (String. (.getBytes s f) t)) | |
(.write w "\n\n") | |
(catch Throwable e))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment