pungpoo / giix

Automatically exported from code.google.com/p/giix
0 stars 0 forks source link

Error on strtolower #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When we label with special characters, the function strtolower() returns empty 
because of the charset.

The solution is to use the mb_strtolower().

public static function label($n = 1, $strtolower = true) {
        $label = Yii::t('app', 'Área de Atuação|Áreas de Atuação', $n);
        return ($strtolower === true) ? mb_strtolower($label, Yii::app()->charset) : $label;
    }

Original issue reported on code.google.com by thi...@thiagomt.com on 29 Aug 2011 at 11:54

GoogleCodeExporter commented 8 years ago
On the roadmap already.
All string functions will use the multibyte version.

Thanks!

Note: The latest release (1.9) doesn't use strtolower in this method.

Original comment by rodrigo.coelho@gmail.com on 29 Aug 2011 at 6:20