Skip to content

Commit

Permalink
Resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
lestcape committed Feb 12, 2024
1 parent d20497a commit df94c22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Sav/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function readBody()
$encode = $this->info[Record\Info\CharacterEncoding::SUBTYPE]->value;
// If is not set assume the UTF-8 encode.
$encode = (isset($encode) && !empty($encode)) ? $encode : "UTF-8";
$this->_buffer->charset = $encode;
$this->_buffer->streamCharset = $encode;

if ($this->_buffer->seek($headerPosition) === 0) {
$this->valueLabels = [];
Expand Down
2 changes: 1 addition & 1 deletion src/Sav/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function write($data)

$encode = (isset($data['info']) && isset($data['info']['characterEncoding'])) ? $data['info']['characterEncoding'] : 'UTF-8';
$this->info[Record\Info\CharacterEncoding::SUBTYPE] = new Record\Info\CharacterEncoding($encode);
$this->buffer->charset = $encode;
$this->buffer->streamCharset = $encode;

$this->data = new Record\Data();

Expand Down

0 comments on commit df94c22

Please # to comment.