Skip to content

Commit 2cd2fee

Browse files
authored
Update Json.php
1 parent ff81bbd commit 2cd2fee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/File/Json.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Json extends AbstractFile
1717
'escape' => '\\',
1818
'join' => '_',
1919
'null' => null,
20-
'excel_utf8_fix' => false
20+
'utf8_encoding' => false
2121
];
2222

2323
/**
@@ -44,7 +44,7 @@ public function convert(): string
4444
protected function toCsvString(array $data): string
4545
{
4646
$f = fopen('php://temp', 'wb');
47-
if($this->conversion["excel_utf8_fix"]) {
47+
if($this->conversion["utf8_encoding"]) {
4848
fprintf($f, chr(0xEF).chr(0xBB).chr(0xBF));
4949
}
5050
$this->putCsv($f, array_keys(current($data)));

0 commit comments

Comments
 (0)