Skip to content

Commit

Permalink
Replace deprecated utf8_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertsoft committed Apr 26, 2023
1 parent e829bcd commit 7e39031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utility/StringUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public static function convertUmlauts(string $string): string
public static function toASCII(string $string): string
{
return strtr(
utf8_decode($string),
utf8_decode('ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ'),
mb_convert_encoding($string, 'ISO-8859-1', 'UTF-8'),
mb_convert_encoding('ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ', 'ISO-8859-1', 'UTF-8'),
'SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy'
);
}
Expand Down

0 comments on commit 7e39031

Please sign in to comment.