Skip to content

Commit

Permalink
[TM-1357] quotation marks around files (#491)
Browse files Browse the repository at this point in the history
* [TM-1357] remove unnecessary json_encode

* [TM-1357] remove unnecessary json_encode

* [TM-1357] chage

* changes

* remove

* remove

* active use bom

* changes

* changes

* changes

* reset changes

* remove json_encode

* changes

* changes

* changes

* fix lint

* fix
  • Loading branch information
LimberHope authored Oct 4, 2024
1 parent fcb59f4 commit be51e46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/Exports/V2/BaseExportFormSubmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ protected function getAnswer(array $field, array $answers): string
if (is_string($answer)) {
$utf8Answer = mb_convert_encoding($answer, 'UTF-8', mb_detect_encoding($answer));
} else {
$utf8Answer = $answer;
$utf8Answer = $answer ?? '';
}

return json_encode($utf8Answer, JSON_UNESCAPED_UNICODE);
return $utf8Answer;
}
}

if (is_string($answer)) {
$utf8Answer = mb_convert_encoding($answer, 'UTF-8', mb_detect_encoding($answer));
} else {
$utf8Answer = $answer;
$utf8Answer = $answer ?? '';
}

return $utf8Answer ?? '';
Expand Down
2 changes: 1 addition & 1 deletion config/excel.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
|
*/
'csv' => [
'delimiter' => ',',
'delimiter' => ';',
'enclosure' => '"',
'line_ending' => PHP_EOL,
'use_bom' => true,
Expand Down

0 comments on commit be51e46

Please sign in to comment.