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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.