I don't know enough about LDAP to comment on how it deals with utf8 data, but the pattern of behavior you reported, where certain diacritic marks are preserved (grave accent on the vowels) but others are lost ("caron" accent on consonants), might suggest a problem with "improperly normalized" input text.

For example, the single character "latin small letter c with caron" (U+010D, č) could also be rendered as a two character sequence: "latin small letter c" (U+0063) followed by "combining caron" (U+030C). This latter form is considered "unnormalized", and is generally frowned upon, but it does show up in places where it might not be expected. If that's the case in your data, it may be that LDAP is ignoring the characters that happen to be combining (non-spacing) marks. (Whether such behavior is warranted, I can't say.)

If you can, it might help to inspect the input strings in more detail, to see what the actual character sequence is. If it's unnormalized, try using Unicode::Normalize to change that, then see what LDAP does.

You might also try this script I posted a while back, which can show you exactly what the character sequences are in your data: tlu -- TransLiterate Unicode.


In reply to Re: UTF-8 in LDAP by graff
in thread UTF-8 in LDAP by asafp

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.