I have several TXT files encoded in UTF-8, they are strings with different vars concatenated by "&".
This files look like this example:
&age=34&address=90&var3=77&var4=<strong>samba</strong><br>Lets's dance
I'm trying to edit them by using fopen(), cause some vars contain HTML, I'm using a very simple system to know if the var is HTML formated or not, I'm simply checking if it contains a "<":
$value[$i]=strpos($var_value[$i],"<");
if ($value[$i]!=" "){ //do whatever...
}
I know this is very poor and suggestions are welcome, this is first problem.
Second problem is that those variables in the TXT contain Spanish accents and characters like the Ñ, should be good to know how to open the files without the PHP making a real mess with all those characters.
:o