[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: decoding non-ascii attribute values
i added the values into my ldap database using the "GQ" graphical user
interface program.
now i want to read them out. i forgot to say that i am coding in C,
using the standard ldap libraries.
can i - as a quick fix - just take the 2 byte values of the characters
in question an recode them by hand, or do they have different encodings
dependent on something, and i should use a conversion library?
erik
On 06 Jun 2003 10:49:13 -0600
M Butcher <mbutcher@grcomputing.net> wrote:
> Someone else may have a more helpful suggestion, but I've used UTF-8
> encodings in the database to deal with larger character sets. Granted,
> this was through a custom-developed interface I wrote, and I just
> encoded the string before adding it to the directory.
>
> Matt
>
> On Fri, 2003-06-06 at 08:36, Erik Thiele wrote:
> > ascii attribute values work fine when doing ldap_get_values.
> >
> > but german umlauts (üöä ÜÖÄ) and the german sharp s (ß) are two-byte
> > encoded. how can i recode the returned strings to latin1 using a
> > function that returns an error, if it is not recodable (for example
> > because it contains chinese characters) ?
> >
> > erik
--
Erik Thiele