How to write arabice or persian text to a txt file using php

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply

Sat Mar 30, 2013 3:24 am

I have a .txt file file.txt an html file called form.html and a php file called update.php.
The form takes arabic contents from user and the update.php file saves the the form data in file.txt
The whole process is working fine but when i write english data in form it works fine but when i write arabic or persian characters it show این است سوال ما in my txt file.
can you help me write utf-8 (Arabic or persian) characters in a txt file using php

Post Reply