We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: i think every version
Method toAscii (and thus webalize) is incorrectly converting german umlauts.
toAscii
webalize
<?php declare(strict_types=1); include __DIR__ . '/src/Utils/StaticClass.php'; include __DIR__ . '/src/Utils/Callback.php'; include __DIR__ . '/src/Utils/Strings.php'; $ok = "✔️"; $err = "❌"; $CorrectConversions = [ "Jägermeister" => "jaegermeister", "Würth" => "wuerth", "Löwenbräu" => "loewenbraeu", "Straße" => "strasse" ]; foreach ($CorrectConversions as $toConvert => $correctConversion) { $converted = \Nette\Utils\Strings::webalize($toConvert); $isCorrect = $converted === $correctConversion; echo $toConvert . " (".$correctConversion.") => " . ($isCorrect ? $ok : $err) . " " . $converted . PHP_EOL; }
Result:
Jägermeister (jaegermeister) => ❌ jagermeister Würth (wuerth) => ❌ wurth Löwenbräu (loewenbraeu) => ❌ lowenbrau Straße (strasse) => ✔️ strasse
Jägermeister (jaegermeister) => ✔️ jaegermeister Würth (wuerth) => ✔️ wuerth Löwenbräu (loewenbraeu) => ✔️ loewenbraeu Straße (strasse) => ✔️ strasse
The text was updated successfully, but these errors were encountered:
❤️
Sorry, something went wrong.
No branches or pull requests
Version: i think every version
Bug Description
Method
toAscii
(and thuswebalize
) is incorrectly converting german umlauts.Reproduce
Result:
Expected Behavior
The text was updated successfully, but these errors were encountered: