Skip to content

Commit

Permalink
Merge pull request #663 from janfejtek/patch-1
Browse files Browse the repository at this point in the history
Replace deprecated utf8_encode
  • Loading branch information
stevebauman authored Oct 19, 2023
2 parents 1fa74d0 + cf6ea68 commit b43cdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Concerns/HasAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected function encodeValue(string $value): string
return $value;
}

return utf8_encode($value);
return mb_convert_encoding($value, 'UTF-8', 'ISO-8859-1');
}

/**
Expand Down

0 comments on commit b43cdb5

Please sign in to comment.