Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2006 20:45:42 +0200 (CEST)
From:      Joerg Pulz <Joerg.Pulz@frm2.tum.de>
To:        =?UTF-8?B?RXJpayBOw7hyZ2FhcmQ=?= <norgaard@locolomo.org>
Cc:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: I can't spell my own name in UTF-8, base 64 encoded
Message-ID:  <20060423204132.K52948@hades.admin.frm2>
In-Reply-To: <444BC593.9090906@locolomo.org>
References:  <444BC593.9090906@locolomo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-264289448-1145817942=:52948
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Sun, 23 Apr 2006, Erik Nørgaard wrote:

> Hi:
>
> 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.

Erik,

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.

Hth.
Joerg

- -- 
The beginning is the most important part of the work.
 				-Plato
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFES8tYSPOsGF+KA+MRAs91AKC/4BNM0nIpwbRtWvONkzNbn5EW9wCePUi8
WNlYPWwTJQBPQLB2K+2H7Hw=
=KRuH
-----END PGP SIGNATURE-----
--0-264289448-1145817942=:52948--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060423204132.K52948>