title: Euro symbol encoding - PHP
body: <p>I've tried a lot of different things and can't get the euro symbol to show.
  I'm using cURL to parse a page. The page is encoded in ISO-8859-1</p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
  </code></pre>
  
  <p>There's a euro symbol on the page and when I use</p>
  
  <pre><code>$curl_scraped_page = curl_exec($ch);
  </code></pre>
  
  <p>I just get a black diamond with a question mark inside.</p>
  
  <p>I've seen a lot of questions and answers on this site that were related but they didn't really work.</p>
  
  <p><strong>EDIT :</strong> I've tried to use the following:</p>
  
  <pre><code>$curl_scraped_page = preg_replace('/charset=(.*)"/', 'charset="UTF-8"', $curl_scraped_page);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$curl_scraped_page = iconv('iso-8859-1', 'UTF-8', $curl_scraped_page);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$curl_scraped_page = utf8_encode(curl_exec($ch));
  </code></pre>
  
  <p>I guess another question is, to display the euro sign, do I need to use UTF-8 or ISO-8859-1?</p>
  
  <p><strong>EDIT2 :</strong> I've tried this:</p>
  
  <pre><code>echo "Encoding is $enc";
  echo iconv($enc, "ISO-8859-1", $curl_scraped_page);
  </code></pre>
  
  <p>The result was:</p>
  
  <pre><code>Encoding is ISO-8859-1
  </code></pre>
  
  <p>but there were still no euro symbols.
  When I view the source of the page, it still shows the diamond question marks but when I click 'View' on the browser and change it to ISO-8859-1, the euro symbols appear. So is it a browser issue?</p>