|
Please categorize/fix as needed. Hello Satoru, sorry for my late answer. I don't think mbstring extension is used in German, it shouldn't. But the mbextension often is installed by default. I think we should add a second condition to the if statement, maybe something that asks if the default zend_locale is japanese. Best regards Hello, Dominik. Ok, I try to add some condition by using Zend_Locale. I have same problem with russian characters: $filter = new Zend_Filter_Alnum(true); Zend_Debug::dump($filter->filter('это странненько - mbstring enabled')); //string(19) " mbstring enabled"{/code} Zend_Debug::dump($filter->filter('это странненько - mbstring disabled')); //string(48) "это странненько mbstring disabled"{/code} In my case $pattern = '/[^[:alnum:]' . $whiteSpace . ']/u'; is used by filter. Thank You for Your information, Kirill. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hello, Dominik.
Is the mbstring extension used in German ?
In the last version, before changing in
ZF-2107, only "^\p{L}\p{N}" pattern is used.But I found it causes error in Japanese. The problem is all character of Japanese is passed.
So, I changed because I thought mbstring extension used only in the language that has many multibyte characters.
But if the mbstring extension used in German , (or Czeck, Polish...etc)
ZF-2107happens your problems.Do you have any idea instead of using "if (extension_loaded('mbstring'))" ?
It seems to be better if we use language location in if statement.