title: java detect if file is UTF-8 or Ansi
body: <p>In Java is there a way to detect if a file is ANSI or UTF-8?  The problem i am having is that if someone creates a CSV file in Excel it's UTF-8.  If they create it using note pad it's ANSI.</p>
  
  <p>I am wondering if i can detect the type of file then handle it accordingly.</p>
  
  <p>Thanks.</p>