title: php problem with russian language
body: <p>i get page in utf-8 with russian language using curl. if i echo text it show good. then i use such code</p>
  
  <pre><code>$dom = new domDocument; 
  
          /*** load the html into the object ***/ 
          @$dom-&gt;loadHTML($html); 
  
          /*** discard white space ***/ 
          $dom-&gt;preserveWhiteSpace = false; 
  
          /*** the table by its tag name ***/ 
          $tables = $dom-&gt;getElementsByTagName('table'); 
  
          /*** get all rows from the table ***/ 
          $rows = $tables-&gt;item(0)-&gt;getElementsByTagName('tr'); 
  
          /*** loop over the table rows ***/ 
          for ($i = 0; $i &lt;= 5; $i++)
          { 
              /*** get each column by tag name ***/ 
              $cols = $rows-&gt;item($i)-&gt;getElementsByTagName('td'); 
  
              echo $cols-&gt;item(2)-&gt;nodeValue; 
  
              echo '&lt;hr /&gt;'; 
          } 
  </code></pre>
  
  <p>$html contains russian text. after it line <strong>echo $cols->item(2)->nodeValue;</strong> display error text, not russian. i try iconv but not work. any ideas?</p>