file_put_contents encoding used on web servers?
<p>I am trying to use <code>file_put_contents</code> (and <code>file_get_contents</code> for that matter) with a UTF-8 <code>¥</code> following this stackoverflow post: <a href="http://stackoverflow.com/questions/4839402/how-to-write-file-in-utf-8-format">How to write file in UTF-8 format?</a> which uses:</p>

<pre><code>$data = mb_convert_encoding($data, 'UTF-8', 'OLD-ENCODING');
</code></pre>

<p>Which wasn't really explained well, since it produces an error of:</p>

<pre><code>mb_convert_encoding(): Illegal character encoding specified
</code></pre>

<p>So <code>'OLD-ENCODING'</code> was just a placeholder they were using.
The question I have is what encoding should I change this to? ASCII or ISO-8859-1? What encoding do most web hosts use? Does it matter?</p>

<p>When I open the file, I will get the symbol correctly, only if I have my notepad set with encoding UTF-8. If I open it with another character set it will show up with a "<code>?</code>".</p>
