Skip to content
New issue

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

Process non ascii symbols #6

Merged
merged 2 commits into from
Mar 18, 2024
Merged

Process non ascii symbols #6

merged 2 commits into from
Mar 18, 2024

Conversation

petrovich24
Copy link
Contributor

When executing mb_convert_encoding all not ascii symbols converted to '?' symbol. In that case to levenshtein function passing parameters, contain only '?' symbols.

if use function utf8_to_extended_ascii from the comment in https://www.php.net/manual/en/function.levenshtein.php page, all non ascii symbols processed normally

@Toflar
Copy link
Owner

Toflar commented Mar 18, 2024

Hey, thanks for your contribution! Unfortunately, there was a bug in the CI so the coding style fixer did not correctly report coding style issues. May I ask you to rebase on the current main branch so you can see the errors? You can already fix them by running composer cs 😊

When executing mb_convert_encoding all not ascii symbols converted to '?' symbol.
In that case to levenshtein function passing parameters, contain only '?' symbols.

if use function utf8_to_extended_ascii from the comment in https://www.php.net/manual/en/function.levenshtein.php page, all non ascii symbols processed normally
@petrovich24
Copy link
Contributor Author

i've rebased to main branch and ran composer cs
now it's should be ok

ensure that \count($map) is lower than 128 here, or otherwise throw an exception

Co-authored-by: Martin Auswöger <[email protected]>
@Toflar Toflar merged commit a14fc43 into Toflar:main Mar 18, 2024
3 checks passed
@Toflar
Copy link
Owner

Toflar commented Mar 18, 2024

Thanks @petrovich24! Released as 2.0.2 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants