Thank you all for quick and enlightening analyses of my beginners like error.
I have used search for double spaces, wrong naming, whatever ... but that, that would never
even cross my mind.

Use vi Luke! vi!

Tnx again.


On Wed, 23 Oct 2019 at 19:13, Ryan Tandy <ryan@nardis.ca> wrote:
On Wed, Oct 23, 2019 at 04:52:41PM +0200, Saša-Stjepan Bakša wrote:
> Is there any good reason that I see one of my custom objectClass garbled
>like this below. It happens when I am reading content from file. From GUI
>tool it looks as it should.
>
>olcObjectClasses:: ezZ9KCAxLjMuNi4xLjQuMS4zNTI2OS4zLjI0NS4yLjcgTkFNRSAncGNyZ
> lBhY2thZ2UnIERFU0MgJ0NvbW1vbiBwYWNrYWdlIGRlc2NyaXB0aW9uIOKAkyBzZXJ2aWNlIHBh
> cmFtZXRlcnMgZGVmaW5lZCBieSBNTk8nIFNVUCB0b3AgU1RSVUNUVVJBTCBNVVNUICggcGNyZlB
> hY2thZ2VUaXRsZSAkIHBhY2thZ2VMaWZldGltZVR5cGUgKSBNQVkgKCBwYWNrYWdlQWN0aXZhdG
> lvbkRhdGUgJCBwYWNrYWdlRXhwaXJ5RGF0ZSAkIHBhY2thZ2VDeWNsZSAkIHRvdGFsTWF4aW11b
> VZvbHVtZSAkIHRvdGFsTWF4aW11bVRpbWUgJCBtb25pdG9yaW5nS2V5ICQgdG90YWxNYXhpbXVt
> QW1vdW50ICQgY3ljbGVNdWx0aXBsaWVyICkgKQ==
>
>Others are normal and human readable.

Your DESC contains an en dash (U+2014, \xe2\x80\x93). If I replace that
with a regular ASCII hyphen (U+002D, \x2d) then ldapsearch prints it
normally.