String encoding with DelimitedFiles

I see, its a UTF-8 BOM file.
With StringEncodings I get an error:

julia> readdlm(open(read, "new.txt", enc"UTF-8 BOM"),',')
ERROR: Conversion from UTF-8 BOM to UTF-8 not supported by iconv implementation, check that specified encodings are correct

Would CSV.jl and DataFrames a viable way for you?

using DataFrames, CSV
data=DataFrame(CSV.File("data1.csv"))
1 Like