Skip to content

Conversation

@Tofandel
Copy link
Contributor

@Tofandel Tofandel commented Mar 1, 2024

The altTextFrom method doesn't work well for non english characters and accents, it also uppercases every word which is weird

The altTextFrom method doesn't work well for non english characters and accents, it also uppercases every word which is weird
function replaceAccents($str)
{
if (function_exists('mb_convert_encoding')) {
return mb_convert_encoding($str, 'ASCII', 'UTF-8');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to remove this after adding tests é would be converted into ? instead of e which could result in empty filenames

@ifox ifox merged commit 33cad70 into area17:3.x May 28, 2024
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.

2 participants