I'm very novice in php and I have a script to get information from some Persian music website.
I have problem with get Farsi character from website:
$this->fa_artist = $html->find('div.main-post', 0)->find('p', 0)->find('b', 1)->plaintext;
file_put_contents('fa_artist.txt', $this->fa_artist);
In save Farsi artist name in fa_artist by html link
name is: امیر علی
but I see this sequence:
امیرعلی
In the file
How can I save it as Farsi character?