From 5e8a5df988a6089c875c763905952d84d1a6f0bc Mon Sep 17 00:00:00 2001 From: Sergio Melendez Date: Tue, 7 Oct 2014 08:46:14 -0500 Subject: [PATCH] Added iconv() to output method --- parsecsv.lib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 5dafcd5..2791293 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -868,6 +868,10 @@ class parseCSV { $string .= implode($delimiter, $entry).$this->linefeed; $entry = array(); } + + if ($this->convert_encoding) { + $string = iconv($this->input_encoding, $this->output_encoding, $string); + } return $string; }