I can't spell my own name in UTF-8, base 64 encoded
Joerg.Pulz at frm2.tum.de
Sun Apr 23 18:45:56 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
On Sun, 23 Apr 2006, Erik Nørgaard wrote:
> So, I finally decided to get OpenLDAP set up to serve an address book
> independent of where I am and on what computer. The problem is that
> unless an attribute value is ascii, values have to be in UTF-8 and
> base64 encoded(?), as I could understand from googling.
> But, I can't even spell my own name in that encoding!
> So question is: How do I most easily populate my directory? Is there a
> tool that can convert an iso-8859-1 ldif to utf-8+base64 ldif? Will ldap
> queries also have to be encoded UTF-8+base64 as well?
> Have I misunderstood the bit about base64, that this is only required
> for binary data such as jpeg images?
> All documentation I have found tells how easy it is to get data out in
> UTF-8 ldif, but I really need to get the data in there first.
you can convert the LDIF file with the following command
iconv -f ISO8859-1 -t UTF-8 <filename>
The only thing you need is converters/libiconv from ports.
The base64 encoding is done by the OpenLDAP tools itself.
The beginning is the most important part of the work.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
-----END PGP SIGNATURE-----
More information about the freebsd-questions