I’m attempting to read in a text file (.csv) using
readdlm(file_path_here, ',', String), and I’m getting the following error:
at row 275, column 3 : UnicodeError: invalid character index 27265 (0xa3 is a continuation byte)) in readdlm at base\datafmt.jl:54 in #readdlm#4 at base\datafmt.jl:54 <inlined> in readdlm at base\datafmt.jl:114 in #readdlm#8 at base\datafmt.jl:114 <inlined> in #readdlm_auto#11 at base\datafmt.jl:134 in readdlm_string at base\datafmt.jl:343 in dlm_parse at base\datafmt.jl:610
row 275, column 3 in the associated text file contains a pound symbol (the UK currency symbol) when the file is opened in notepad++. If I delete the symbol, then the
readdlm call works with no error, so it is definitely that symbol causing the issue.
Any ideas what I can do so that pound symbols don’t make my code fall over? For reference, I’m on Windows 10, Julia v0.6.2, with US keyboard, and US keyboard layout selected in Windows (I wouldn’t have thought that would make a difference, but included it just in case).