|
|||
|
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';
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 Last edited by Myllykoski Design : 03-31-2008 at 12:23 AM. |
|
|||
|
Hello,
I have exactly the same issue! I'm from Poland, in my case Polish letters are filtered not properly and also Zend_Validate_Alpha is not working for me (because it's using Zend_Filter_Alpha ;-) ). I've tried to set locale into 'pl_PL' by doing: set_locale(LC_ALL, 'pl_PL'), but this still doesn't work. Any ideas? I just can't unload mbstring extension because it's compiled into PHP :/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|