diff options
author | Yaco <franco@reevo.org> | 2019-11-22 06:51:13 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2019-11-22 06:51:13 -0300 |
commit | 1ce015ef02b94867bc3f151ccbe8602dbe7eda54 (patch) | |
tree | 5676fef1faeb2c598731d081e331e18c49da63cf /www/wiki | |
parent | 4409f2d8af61693762c07c0f85ee9dc02c259a67 (diff) |
corrige encoding de utf-8 cuando importamos csv
Diffstat (limited to 'www/wiki')
-rw-r--r-- | www/wiki/extensions/DataTransfer/specials/DT_ImportCSV.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/www/wiki/extensions/DataTransfer/specials/DT_ImportCSV.php b/www/wiki/extensions/DataTransfer/specials/DT_ImportCSV.php index ec8c4d41..1a221424 100644 --- a/www/wiki/extensions/DataTransfer/specials/DT_ImportCSV.php +++ b/www/wiki/extensions/DataTransfer/specials/DT_ImportCSV.php @@ -120,11 +120,11 @@ class DTImportCSV extends SpecialPage { // Convert from UTF-8 to ASCII - htmlentities() // fails for UTF-8 if there are non-ASCII // characters. - $convertedLine = array(); - foreach ( $line as $value ) { - $convertedLine[] = mb_convert_encoding( $value, 'UTF-8', 'ASCII' ); - } - array_push( $table, $convertedLine ); + // $convertedLine = array(); + // foreach ( $line as $value ) { + // $convertedLine[] = mb_convert_encoding( $value, 'UTF-8', 'ASCII' ); + // } + array_push( $table, $line ); } } fclose( $csv_file ); |