[TYPO3-mvc] Why won't my extender render umlauts?

Bastian Waidelich bastian at typo3.org
Sat May 26 18:12:25 CEST 2012


Bastian Waidelich wrote:
> Oliver Salzburg wrote:

> Maybe the reason is, because you remove special characters in your
> clean() method  [...]

Again, a bit more detailed (as on SO):

you call Tx_Downloads_Utility_Filename::construct($linkName) which (by 
default) calls Tx_Downloads_Utility_Filename::clean($linkName) which 
again removes all the special characters by replacing anything that 
doesn't match the regex pattern /([[:alnum:]_\.-]*)/ by underscores. 
There seems to be a problem with encoding (maybe your db is not set to 
UTF-8 encoding) so Text_File_Sömething is actually turned into 
Text_File_Sömething and the clean() method turns that into an invalid 
string. try using utf8_encode() on the $filename first.

-- 
Bastian Waidelich
TYPO3 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list