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

Reply via email to