0

I tried lots of methods, but none of them worked.

$file = "/home/ozgurj2l/public_html/turk/kültürel değişim.txt";
$d = fopen($file, "r");
$data = fread($d, 4000);
echo $data;

Result:

$bjbj�s�s.(��b �������||||�\

How can I do it?

2
  • what is the result you are expecting? Commented Jan 18, 2014 at 10:10
  • Welcome to Stack Overflow new user. You should accept the answer you think its the answer of your question. And please take a 2 minute tour to learn how to use Stack Overflow. Commented Jan 18, 2014 at 11:19

1 Answer 1

1
mb_convert_encoding($data,"UTF-8");
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.