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
Nette\Utils\Strings::toAscii doesnt convert ã to ascii character #1535
Comments
@reflexator I'm kind of confused - what are you passing to toAscii method? Text 'joão-marques' is already in ASCII, so |
So it will not remove diacritic as it says in documentation? I am little bit confused
|
So it looks that it will remove diacritics if you pass string in ASCII, but if you pass in numeric character reference it doesnt remove it. |
@reflexator Yes, it will remove diacritics. You did not answered the question - what are you passing to toAscii method? If the answer is 'joão-marques', then there is nothing to remove, there is no diacritics in that text. (Hm... Github messes up HTML entities) |
Yeah I am passing string with numeric reference, my bad, I will close ticket. |
Example: joão-marques
Results: joão-marques
Correct result: joao-marques
The text was updated successfully, but these errors were encountered: