title: formatting header row of a CSV with ruby
body: <p>I work with a lot of CSV files that have UTF-8 characters in them - namely Chinese traditional. There is one particular situation I came across today where the header row of my CSV file was so garbled that I needed to replace it (I have the exact values to do so). The rest of the CSV data was actually fine.</p>
  
  <p>What I am trying to work out is how can I (using ruby) simply open the CSV file in question, delete the existing header row and then replace it with the correct header row without having to load the entire file. If I could do this instead of having to deal with badly formatted headers it would save me some serious time!</p>