>From what I remember the CLDR exemplar characters also have sets of proposed 
>elements. So for a language like Irish Gaelic some traditional characters 
>wouldn't get included in the Filter/Validator. Not too much an issue though - 
>most Gaelic doesn't use them anymore.

I think even a single Locale solution is worth something. We already have the 
characters for each just sitting there.

At the end of the day I think multi-Locale ranges are going to remain a manual 
exercise... Maybe some manual manipulation and duplicate removal across 
multiple CLDR exemplars would work - not very easy though.

P.
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


----- Original Message ----
From: Andries Seutens <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: Darby Felton <[EMAIL PROTECTED]>; Guillaume Millet <[EMAIL PROTECTED]>; 
Zend Framework General <[email protected]>
Sent: Tuesday, May 29, 2007 9:58:56 AM
Subject: Re: [fw-general] Zend_Validate


Hello Alexander,

This issue is slightly more complicated, and so far, we have not come to 
a consensus. You might want to check out the following Jira issue as well:

http://framework.zend.com/issues/browse/ZF-1248

I have a proof of concept available here:
http://andries.systray.be/Alpha.phps

However, the problem is that this does not support ALL locales, but only 
the given locale....

Best,


Andries Seutens
http://andries.systray.be

Alexander Jaeger schreef:
> Hello List,
>
> i waited eagerly to see 1.0 RC1, and here it is ;)
>
> I am still looking for a solution to my Umlauts problem,
>
> i tried using the mbstring settings within php,
>
> [mbstring]
> mbstring.language = neutral
> mbstring.http_input = iso-88589
> mbstring.http_output = iso-8859-1
> mbstring.internal_encoding = iso-8859-1
> mbstring.encoding_translation = Off
>
> I changed it a couple of times using german as language, and UTF-8 
> encoding, also http_input as auto,
> no success on that matter.
>
> Then I red the new post @ http://framework.zend.com/issues/browse/ZF-269
>
> Could anyone provide me with an example how to use the
>
> Zend_Filter_Input::getRaw()
>
> for this code:
>
> $var1 = "jäger";
>
> $filter_StripTags->filter($var1);
>
> $alpha = new Zend_Validate();
> $alpha->addValidator(new Zend_Validate_StringLength(1, 64));
> $alpha->addValidator(new Zend_Validate_Alpha());
>
> if ($alpha->isValid($var1) {
>  echo $var1 . 'is Valid';
> } else {
>  echo $var1 . 'is not Valid';
> }
>
>
> I guess i am just being stupid... i have no idea how i get that workin.
>
> Help greatly appreciated.
>
> Alex
>
>
>
> Darby Felton schrieb:
>> Hi Alex,
>>
>> The issue you experience is related to ZF-269:
>>
>> http://framework.zend.com/issues/browse/ZF-269
>>
>> Thanks for the report!
>>
>> Best regards,
>> Darby
>>
>> Alexander Jäger wrote:
>>  
>>> Sorry to bother,
>>>
>>> I try to validate a variable cotaining my lastname "jäger".
>>>
>>> $alpha = new Zend_Validate();
>>> $alpha->addValidator(new Zend_Validate_StringLength(1, 64));
>>> $alpha->addValidator(new Zend_Validate_Alpha());
>>>
>>> $var1 = "jäger"
>>>
>>> if ($alpha->isValid($var1) {
>>>   echo $var1 . 'is Valid';
>>> } else {
>>>   echo $var1 . 'is not Valid';
>>> }
>>>
>>> // prints: jäger is not Valid
>>>
>>> if itry the same with $var1='alexander' it is valid.
>>>
>>> I try to get the locales workin and they work using the
>>> setlocale(LC_ALL,"de_DE.UTF-8");
>>>
>>> Also I tries using Zend_Locale, but still no improvement.
>>>
>>> Can any one point me to an direction to seek a solution.
>>>
>>> Please help ;)
>>>
>>> Alex
>>>
>>>
>>> Alexander Jäger schrieb:
>>>    
>>>> Hello Guillaume,
>>>>
>>>> thats a simple solution....
>>>>
>>>> somtimes i don´t see the forest, because of all the trees.
>>>>
>>>> thanks.
>>>>
>>>> Alex
>>>>
>>>> Guillaume Millet schrieb:
>>>>      
>>>>> Hi Alex,
>>>>>
>>>>> If you're trying to validate data like your name using
>>>>> Zend_Validate_Alpha, you may want to try and set PHP's locale to
>>>>> German using setlocale() if it's not already done.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Guillaume
>>>>>
>>>>> Lx a écrit :
>>>>>
>>>>>        
>>>>>> Simon R Jones schrieb:
>>>>>>
>>>>>>          
>>>>>>> Hi Alexander,
>>>>>>>
>>>>>>> Some domain names have been set up to accept international
>>>>>>> characters, DE domains being one of them. More info on how to use
>>>>>>> it is on
>>>>>>> http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html
>>>>>>>  
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> However, there have been reports of it not working reliably for
>>>>>>> some people. This is likely down to character encoding issues.
>>>>>>> This has been reported in ZF-1083 (
>>>>>>> http://framework.zend.com/issues/browse/ZF-1083 ) and I'm looking
>>>>>>> into why this isn't working for some people. I had uploaded a test
>>>>>>> script to that page but the upload process messed up the character
>>>>>>> encoding so that doesn't work.
>>>>>>>
>>>>>>> I plan to write up some tests and host them myself to help resolve
>>>>>>> this. I'll send you a link once I've done this.
>>>>>>>
>>>>>>> best wishes,
>>>>>>> Simon
>>>>>>>
>>>>>>>               
>>>>>> Hi Simon,
>>>>>>
>>>>>> thanks very much for the fast reply,
>>>>>>
>>>>>> i actually searched for a solution to validate a string containing
>>>>>> umlaute such as a name as mine "Jäger" ;)
>>>>>>
>>>>>> But the example of the domains will help to find a solution to my
>>>>>> umlaut problem.
>>>>>>
>>>>>> Again thank you,
>>>>>>
>>>>>> Alex
>>>>>>
>>>>>> P.S. I really love your project, thanks for the effort to build such
>>>>>> an perfect framework
>>>>>>           
>>>>>         
>
>


-- 
Andries Seutens
http://andries.systray.be


Gecontroleerd op virussen door de JOJO Secure Gateway.







       
____________________________________________________________________________________Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

Reply via email to