Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[fix] convert ascii to single character

  • Loading branch information...
NorbertNader committed Aug 14, 2017
1 parent 840b622 commit ae76d0e54399d0de0f9e8219b695a86373021088
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/Utils/RecordBrowser/CsvExport.php
@@ -151,7 +151,7 @@ public function to_handle($f)
ob_start(function($buffer) use ($end_line_type,$text_space_indicator,$text_space_separator) {
return Utils_RecordBrowser_CsvExport::eol_conversion($buffer, $end_line_type,$text_space_indicator,$text_space_separator);
});
fputcsv($f, $cols, $this->field_separator, $this->text_space_separator);
fputcsv($f, $cols, $this->field_separator, chr($this->text_space_separator));
$currency_codes = DB::GetAssoc('SELECT symbol, code FROM utils_currency');
$records = true;
@@ -221,7 +221,7 @@ public function to_handle($f)
$rec[] = $this->utf_to_charset(str_replace(array(\PHP_EOL," ","⇒",$this->text_space_separator), array(' ','','',''),trim($val)));
}
}
fputcsv($f, $rec, $this->field_separator, $this->text_space_separator);
fputcsv($f, $rec, $this->field_separator, chr($this->text_space_separator));
}
}
if ($this->error_charset_conv){

0 comments on commit ae76d0e

Please sign in to comment.
You can’t perform that action at this time.