Hi!
I am trying to filter the input from a form using Zend_Filter_Alpha. The problem is that it removes valid swedish characters like å,ä and ö. I have checked the code and it seems like the filter is using the following regexp:
Code:
} else if (extension_loaded('mbstring')) {
// Unicode safe filter for the value with mbstring
$pattern = '/[^[:alpha:]' . $whiteSpace . ']/u';
I have tried with changing the settings form mbstring.http_input and mbstring.http_output as well as making sure that the correct locale is set and if that might have some effect but i still have the same problem.
On
this page you can see the form with a default value that uses swedish characters.
The mbstring settings are:
Code:
Multibyte Support = enabled
Multibyte string engine = libmbfl
Multibyte (japanese) regex support = enabled
Multibyte regex (oniguruma) version = 4.4.4
Multibyte regex (oniguruma) backtrack check = On
mbstring.detect_order = no value
mbstring.encoding_translation = Off
mbstring.func_overload = 0
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.internal_encoding = UTF-8
mbstring.language = neutral
mbstring.strict_detection = Off
mbstring.substitute_character = no value
Still it removes all characters that is outside the range of a-zA-Z, is it supposed to be that way or am I doing something wrong?