Index: trunk/extensions/DataTransfer/specials/DT_ImportCSV.php |
— | — | @@ -100,7 +100,11 @@ |
101 | 101 | static function getCSVData($csv_file, &$pages) { |
102 | 102 | $table = array(); |
103 | 103 | while ($line = fgetcsv($csv_file)) { |
104 | | - array_push($table, $line); |
| 104 | + // fix values in case the file wasn't UTF-8 encoded - |
| 105 | + // hopefully the UTF-8 value will work across all |
| 106 | + // database encodings |
| 107 | + $encoded_line = array_map('utf8_encode', $line); |
| 108 | + array_push($table, $encoded_line); |
105 | 109 | } |
106 | 110 | fclose($csv_file); |
107 | 111 | // check header line to make sure every term is in the |