0

I have problem writing utf8 characters in .dat file from MyGallery (free PHP script).
The utf8 characters in .dat file are writen like this:

�ва е �амо п�оба

When I try to edit .dat file with utf8 character text, I'm able to see the right text in MyGallery, so the problem is with writing in .dat file (reading from the file is ok).

Anny suggestions?

Anne
  • 26,765
  • 9
  • 65
  • 71
Mega
  • 557
  • 2
  • 10
  • 22
  • 2
    I strongly recommend ["The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)"](http://www.joelonsoftware.com/articles/Unicode.html) – Uwe Keim Jun 20 '12 at 09:08
  • 1
    I have just written answer about this exact topic here: [PHP file_put_contents and UTF-8](http://stackoverflow.com/questions/11115533/php-file-put-contents-and-utf-8) – deceze Jun 20 '12 at 09:10

1 Answers1

0

Check utf8_decode @ PHP manual and utf8_encode @ PHP manual and you will find a solution within minutes

Sliq
  • 15,937
  • 27
  • 110
  • 143