Hello
I am trying to fread a file that has got characters in different languages. Some of these characters are not of any defined character set (like some custom truetype fonts, etc.) and the PECL fileinfo extension shows the encoding as "text/plain; charset=unknown-8bit".
What i need to do in the php file is to load the contents into a variable and do some string replacements.
The thing is if i simply copy the file contents into my php file and do replacements, then it works fine.
But if i do an Fopen, fread, i am guessing that because fopen apparently uses windows-1250 encoding, the characters are getting screwed up.
Is there some way i can do something like
<?php
$string = {include("filename.html")};
?>
Or, alternatively, is there a better way to do Fread on characters that don't have a particular charset
Thanks a million, in advance
V Madurai