title: iconv - differences between R and Linux
body: <p>I'm trying to import a tab delimited text file (of weather data) into R.   The main issue seems to be its encoding.   According to Windows notepad, it's UTF-16LE and I'd prefer UTF-8 for importing.</p>
  <p>After much fiddling, I've managed to convert it in Linux using iconv:</p>
  <p>iconv -f UTF-16LE -t UTF-8 in.csv -o in_utf8.csv</p>
  <p>...which I can then import into r using read_delim with no problems.   Ideally, I would make the conversion from UTF-16LE to UTF-8 a part of the R script that imports and then analyses the data but I can't see how to make R get at a file it hasn't attempted to load.</p>
  <p>Thanks in advance
  Rob</p>