Link to home
Start Free TrialLog in
Avatar of MichaelVH
MichaelVHFlag for Belgium

asked on

PHP+ldap results with french accents showing a questionmark

All,

thanks to you I already got the LDAP-queries right, but now there's an issue with the formatting of the results. The queries run perfectly and do return the correct information, however when a name (queried from AD) contains a french accents (and there are quite some of them) the result is shown with a question-mark inside a square instead of the character with the french accent.

I'm wondering, is this due to PHP, javascript or is it maybe the LDAP-query that returns the result with an questionmark?

Your help is appreciated (once again)!

Kind regards,

Michael
SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MichaelVH

ASKER

if you mean that I had to post the query, than here you go:
ldap_search($ctc,"dc=domain,dc=tld","(&(objectcategory=person)(objectclass=user)(cn=*".$_GET['q']."*))") or die ("Error in search query");

regards,

Michael
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial