I have the following string on an XML file:
seg��n
which is obtained by uploading a file, the thing is that I can not return it to any known character, to say it to ISO-8859-1 or UTF-8 for example
según
or
según
the mb_detect_encoding
tells me it's a utf-8
the code is as follows
fwrite($file,
'<?xml version="1.0" encoding="UTF-8"?>'.
// utf8_decode(
mb_convert_encoding(
html_entity_decode(trim($contenido))
, 'UTF-8', 'HTML-ENTITIES')
// )
);
fclose($file);
where $contenido
is the xml containing that string