Hi the problem is this: I'm reading a couple of server generated files (txt) via fopen
and fgets
PHP functions to assamble a pdf, in some cases the source file (txt) has some special tags for call another file and insert its content in the tag position, tag Example:
††PuntosSent††
I tried several ways and I'm not able to get the tag because of the †
character. I've tried the following ways and none of them seem to work for replacing the tag or change the charater to a "readable one"
str_replace ($this->doc_p_sent = my custom text value)
$full_body = str_replace('††PuntosSent††', $this->doc_p_sent, $full_body);
change the character for anything else (also tried with \†
)
$full_body = str_replace('†', '*', $full_body);
the most aproximate way I get this was with this (works for a var with the †
but not with the text from the txt file)
iconv("UTF-8", "ISO-8859-1//TRANSLIT", $full_body)
this last one changes the †
character for a +
plus if I use it directly like this:
iconv("UTF-8", "ISO-8859-1//TRANSLIT", '††PuntosSent††')
I hope someone here can point me in the right direction because im getting insane wth this :P
Regards people