title: Adding BOM to UTF-8 files
body: <p>I'm searching (without success) for a script, which would work as a batch file and allow me to prepend a UTF-8 text file with a BOM if it doesn't have one.</p>
  
  <p>Neither the language it is written in (perl, python, c, bash) nor the OS it works on, matters to me. I have access to a wide range of computers.</p>
  
  <p>I've found a lot of scripts to do the reverse (strip the BOM), which sounds to me as kind of silly, as many Windows program will have trouble reading UTF-8 text files if they don't have a BOM.</p>
  
  <p>Did I miss the obvious?</p>
  
  <p>Thanks!</p>