Reputation: 145
I am trying to write data in a .eps file, Here is my code
header('Content-Type: text/html; charset=utf-8');'
$var = 'ê';
echo $var;
$file = 'test.eps';
file_put_contents($file, $var);
But when i open test.eps, the data written is ê
it should have been ê
Please Help ...
Upvotes: 2
Views: 2087
Reputation: 1532
I believe you are dealing with either:
Edit From the comments it sounds like an issue with your text editor. Try creating a new copy of the file using a proper programming text editor. https://stackoverflow.com/questions/173112/best-lightweight-ide-text-editor
Upvotes: 3