Make sure that ADIF logs are always handled as UTF-8 encoded to support international langs

This commit is contained in:
Peter Goodhall
2019-06-30 23:29:58 +01:00
parent d6b447ea1f
commit e660f1640a
3 changed files with 3 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ class ADIF_Parser
public function load_from_file($fname) //allows the user to accept a filename as input
{
$this->data = file_get_contents($fname);
$this->data = $string = mb_convert_encoding(file_get_contents($fname), "UTF-8");
}
//the following function does the processing of the array into its key and value pairs