0

It seems Incanter can only recognize utf-8 encoding file while native clojure slurp can read non-utf8 encoding file with :encoding keyword, So is it possible to combine those two functions together ,but I don't know how to do that!

Alex Miller
  • 69,183
  • 25
  • 122
  • 167
sage han
  • 195
  • 1
  • 1
  • 7

1 Answers1

1

first parameter could be filename, URL, or anything that could be handled by clojure.io/reader, so you can write something like:

(read-dataset (InputStreamReader. (FileInputStream. "data/co2.csv") "ISO-8859-1"))
Alex Ott
  • 80,552
  • 8
  • 87
  • 132