Bug #83438
closedRespect suomi in specCharsToASCII conversion method
0%
Description
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
Updated by Reiner Teubner almost 7 years ago
IMO: The method works like it's expected behavior because in utf-8
we can't recognize which origin language is it.
Updated by Markus Klein almost 7 years ago
- Is duplicate of Bug #20612: scandinavian letters are transliterated wrong added
Updated by Markus Klein almost 7 years ago
- Status changed from New to Closed
This is more or less a duplicate of #20612.
As Reiner already mentioned, this is not really solvable as it looks.
A solution for your issue is to set [SYS][utf8filesystem] so no transliteration has to be performed.
Updated by Dan Kleine (Untenzu) almost 7 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