zeltus has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: string mis-match?
by Corion (Patriarch) on Aug 13, 2015 at 14:29 UTC | |
by zeltus (Beadle) on Aug 13, 2015 at 14:57 UTC | |
|
Re: string mis-match?
by SuicideJunkie (Vicar) on Aug 13, 2015 at 14:24 UTC | |
by zeltus (Beadle) on Aug 13, 2015 at 14:54 UTC | |
|
Re: string mis-match?
by Tux (Canon) on Aug 13, 2015 at 15:53 UTC | |
|
Re: string mis-match?
by johngg (Canon) on Aug 13, 2015 at 15:08 UTC | |
|
Re: string mis-match?
by zeltus (Beadle) on Aug 13, 2015 at 16:15 UTC | |
by afoken (Chancellor) on Aug 13, 2015 at 18:07 UTC |