[TYPO3-english] vge_tagcloud and proper handling of UTF-8 tags
    Jigal van Hemert 
    jigal at xs4all.nl
       
    Tue Apr 12 23:12:05 CEST 2011
    
    
  
Hi,
On 12-4-2011 22:29, François Suter wrote:
> when "à" is converted to latin-1 (which is what PHP's regexp functions
> do - unfortunately)
PHP regexps do not convert anything, they are just not UTF-8 aware. In 
fact PHP is not character set / encoding aware at all.
There is however an easy solution: use the modifier 'u'. [1] It can 
reduce performance, but at least you have a UTF-8 aware regular expression.
[1] http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php
-- 
Kind regards / met vriendelijke groet,
Jigal van Hemert.
    
    
More information about the TYPO3-english
mailing list