Skip to content

Commit

Permalink
Transform non UTF-8 to UTF-8 from CSV files
Browse files Browse the repository at this point in the history
  • Loading branch information
coreation committed Dec 21, 2015
1 parent e7ac97f commit b2348f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Tdt/Core/DataControllers/CSVController.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private function createValues($columns, $data)

foreach ($columns as $column) {
if (!empty($data[$column['index']]) || is_numeric(@$data[$column['index']])) {
$result[$column['column_name_alias']] = @$data[$column['index']];
$result[$column['column_name_alias']] = \ForceUTF8\Encoding::fixUTF8(@$data[$column['index']]);
} else {
$index = $column['index'];

Expand Down

0 comments on commit b2348f1

Please sign in to comment.