Hi
I have a perplexing problem whereby I expect to receive a password via a SOAP interface. When the password contains £ (or €) the is-password-correct test fails.
I have produced a hugely much-simplified example below and I hope someone can give me some pointers as to how to go about determining what the mismatch is, 'cos I can't see it. It doesn't seem to be utf-8 related but then, what do I know? Anyway, clues, tips on how to determine why these strings are different, gratefully received.
# $code received into system via a SOAP interface... <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envel +ope/" xmlns:urn="urn:Whatever"> <soapenv:Header> <urn:AuthHeader> <Customer>TopDog</Customer> <Username>Underdog</Username> <passwordString>S$ummer£!01</passwordString> . . . # perl example fragment my $control = q(S$ummer£!01); if ( $control eq $code ) { warn("+++ $name: strings DO match\n"); } if ( $control lt $code ) { warn("+++ $name: control lt code\n"); } if ( $control gt $code ) { warn("+++ $name: control gt code\n"); } returns +++ _password_matcher: control gt code
In reply to string mis-match? by zeltus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |