Esteemed Monks,

just a quick question before I scarper for my supper - more information tomorrow if required:

I am using tried and tested code (well, it was using Mozilla::LDAP and has recently been rolled over to Net::LDAP) to add an entry to an LDAP directory

In this case it is an Exchange 5.5 GAL, but the same code is used for a 'real' X.500 directory. I suspect that most of this is irrelevant.

The '$ldap_entry->update' method works fine and my new entry appears in the GAL; there is just one problem. A special character (decimal 167) which is a kind of double 's' in the UTF-8 character set appears to be being stripped out during the LDAP update.

I can see the data in the new LDAP entry before I call the update method, but the data is not making it into the directory, although there is no error code returned.

I was wondering if this was a known feature of Net::LDAP and if I had to do some kind of conversion of the data before I updated the LDAP directory

Any suggestions welcomed; my tea will be even more welcome ;-)

Cheers

LGC

Nothing succeeds like a budgie with no teeth.

In reply to Net::LDAP and special characters by LittleGreyCat

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.