Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Given a version number MAJOR.MINOR.PATCH, increment:


## [Unreleased]
### Fixed
- UTF-8 encoding

## [0.5.0] - 2025-02-18
### Added
Expand Down
3 changes: 1 addition & 2 deletions src/utils/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public static function castJsonToApiFormat($json, $resourceName = null)
continue;
}
if (is_string($value)) {
$value = utf8_decode($value);
$clean[$key] = utf8_encode($value);
$clean[$key] = mb_convert_encoding($value, 'UTF-8', 'UTF-8');
continue;
}
if ($value instanceof DateTime) {
Expand Down