Respect suomi in specCharsToASCII conversion method
TYPO3 offers a method to convert a string with special characters like German Umlauts (ä, ö, ü, …) to ASCII (ae, oe, ue, …), in order to convert filenames, URLs, etc.
This method is imho not able to handle different language settings for umlauts. For example in Finland, the »ä« is also present in the language (suomi) and should be converted to »a« instead. See example page:
- Title: »Näe ja koe« URL: https://www.myhelsinki.fi/fi/nae-ja-koe/
This issue was reported first in RealURL: https://github.com/dmitryd/typo3-realurl/issues/584#issuecomment-353553366
Method specCharsToASCII: https://api.typo3.org/typo3cms/8/html/_charset_converter_8php_source.html#l01268
#4 Updated by Dan Untenzu almost 2 years ago
Ah, I see, thanks for the reference.
Sidenote - As long as the original issue #20612 is not solved we have provided two solutions for this:
- Pull Request for RealUrl to add a hook to the convertToSafeString method, which would allow developers to overwrite the URL, eg. if the language is suomi. See https://github.com/dmitryd/typo3-realurl/pull/586
- An extension which overwrites the convertToSafeString method in RealUrl and replaces the given characters. See https://packagist.org/packages/webit-de/realurl-suomiurl