title: PHP url encoding problems
body: <p>I have some URL which is in CP-1251 i believe. For example:</p>
  
  <pre><code>http://domain.com/Test - СЃСѓС‚СЊ РІ СЌС‚РѕРј.mp3
  </code></pre>
  
  <p><code>mb_detect_encoding</code> says it is ASCII. However, I've tried to convert this to UTF-8, but no luck. However the following worked:</p>
  
  <pre><code>$url = mb_convert_encoding(urldecode($url), "Windows-1251", "auto");
  </code></pre>
  
  <p>Which means that it converted the url to <code>Windows-1251</code>. Which is strange, but it shows the characters right. But when I insert this converted url inside an html object (some music player) it doesn't work. Firebug shows an error:</p>
  
  <pre><code>"NetworkError: 404 Not Found - http://domain.com/Test%20-%20????%20?%20????.mp3"
  </code></pre>
  
  <p>So somehow I got question marks instead of a right url. <code>urlencode</code> doesn't help.</p>
  
  <p>The file itself is <code>utf-8</code>.</p>
  
  <p>I'm confused with all this stuff. Is there any solution here?</p>