PHP显示奇怪的汉字?

I am having a few problems with this code, one is that the proxies are not being displayed on a new line for each one.

Two is that instead of the "
" being displayed these weird chinese characters are being displayed 䈼㹒

<?php

$data = file_get_contents("http://proxylists.connectionincognito.com/proxies_657.txt");

  //var_dump($data);
$lines = explode("/n", $data);

  foreach($lines as $line)
{

  echo $line;
  echo "<BR>";

}


?>

Try to explode by " " instead of "/n".

The Chinese charakters are there because the file is encoded in UTF-16, so you need to do this:

$data = mb_convert_encoding($data,'UTF-8','UTF-16');

before you start to work with the data. I made a working example here:

http://www.servisio.com/test.html

It contains these four lines:

$data  = file_get_contents("http://proxylists.connectionincognito.com/proxies_657.txt");
$data  = mb_convert_encoding($data,'UTF-8','UTF-16');
$lines = explode("
", $data);
foreach($lines as $line) echo $line.'<br>';