8000 [String] Add UTF-8 encoding. · symfony/symfony@c10a2ed · GitHub
[go: up one dir, main page]

Skip to content

Commit c10a2ed

Browse files
committed
[String] Add UTF-8 encoding.
1 parent 53eb433 commit c10a2ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/String/AbstractUnicodeString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public function snake(): parent
377377

378378
$strings = array_map(
379379
function (string $matchedString) {
380-
return mb_strtolower($matchedString);
380+
return mb_strtolower($matchedString, 'UTF-8');
381381
},
382382
$matches[0] ?? []
383383
);

src/Symfony/Component/String/ByteString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public function snake(): parent
377377

378378
$strings = array_map(
379379
function (string $matchedString) {
380-
return mb_strtolower($matchedString);
380+
return mb_strtolower($matchedString, 'UTF-8');
381381
},
382382
$matches[0] ?? []
383383
);

0 commit comments

Comments
 (0)
0