title: iconv() – how to detect offending character?
body: <p>I use <code>iconv()</code> to convert CSV data from <strong>UTF-8</strong> to <strong>Windows-1252</strong>. </p>
  
  <pre><code>$converted = iconv("UTF-8", "Windows-1252", $csvData);
  </code></pre>
  
  <p>In some cases, <code>iconv()</code> failed quietly, returning <code>false</code>.</p>
  
  <p>I also tried using <code>//TRANSLIT</code> but `iconv()´ returns <strong>false</strong> here as well.</p>
  
  <p>When i add the <code>//IGNORE</code> statement to the target charset, the conversion succeeds, but that means one or more character(s) got lost.</p>
  
  <p>I can stick to <code>//IGNORE</code> but i would like to find out which character(s) are causing the problem.</p>
  
  <p>How can i do this?</p>