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

Re: how can i get attribute type!

> how can i know the type of the attribute . (text or binary)

I think you mean the "syntax"? You can look at the schema and determine
what the syntax is for that attribute.

If you want to know if the value you got back has non-ASCII you can OR the
bytes together and see if the high bit is a "1". That will confirm if the
value you have is _not_ ASCII.

I know that the iPlanet C API has such a marker, but it just does the
OR'ing for the user (if I remember correctly). The Java API doesn't even
pretend to know.