Thanks for your opinion.
I agree with you that canonical equivalancy is the basic equivalancy and most likely suitable for application. But if I want to build an application which will verify the user credentials against the credentials stroed in a directory server (say LDAP), in that case I need to compare two strings, one supplied by the user and one stored in the directory. The sting stored in the directory server supplied by an administrator of the application software. In case of string stored in the directory server is the UTF-8 string and the UTF-8 encoding has done on the string supplied by the administrator. This string stored in the directory server remains constant for every time I fetch from directory server. But credentials supplied by the user may vary. Some time user can choose one format and other time another format. Take the Katakana example which I have mentioned in my previous post.
Administrator supplied the user credentials in katakana half width format and user supplied the same thing in katakana full width format.
If I comapre these two strings in canonical equivalancy then these two strings are different and the application will fail to identify the user. I think this is an error. Can you please tell me in this case what shall I do, stick to canonical equivalancy or shall I check compatibility equivalancy as well?
TIA.
-Pijush

In reply to Re^4: Help needed to compare two unicode strings!!! by pijush
in thread Help needed to compare two unicode strings!!! by pijush

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.