[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: decoding non-ascii attribute values

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.


On Fri, 2003-06-06 at 08:36, Erik Thiele wrote:
> hi
> 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) ?
> cu & thx
> erik
M Butcher <mbutcher@grcomputing.net>