php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13795 no special german characters returned by LDAP
Submitted: 2001-10-23 03:41 UTC Modified: 2001-10-23 04:45 UTC
From: christian dot storck at ron dot de Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.0.6 OS: Windows NT 4.0 Server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
21 + 23 = ?
Subscribe to this entry?

 
 [2001-10-23 03:41 UTC] christian dot storck at ron dot de
What I wanted to do:
I wrote a script that connects to a Microsoft Exchange Server using the LDAP support of PHP. To do so I used the Example provided with the PHP manual (chapter XLIII). The values the Exchange Server returns are put into tables and are displayed by a browser.

What I expected the script to do:
I expected the script to return the values as set in Exchange but the values returned do not contain special german characters. They are being replaced. I searched for an solution everywhere but there seems to be none. I also found some people who have the same problems with PHP?s LDAP support. This seems to be a general problem with the german character set.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-23 04:05 UTC] sniper@php.net
There is nothing wrong with PHP's ldap. You're just doing 
something wrong. :)

Now, first thing is to check if the ldap server is using
ldap v3. And you have to make sure that you query in ldap v3 
mode. With this line you should be able to enable v3:

ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)

--Jani

 [2001-10-23 04:15 UTC] christian dot storck at ron dot de
Thanks for your quick answer...
I included the line you sent me.
Now there are special chars displayed but these are no german special chars. Is there another possibility?
 [2001-10-23 04:18 UTC] sniper@php.net
UTF8? :)

utf8_decode() might be needed now.

--Jani

 [2001-10-23 04:34 UTC] christian dot storck at ron dot de
Thanks for your quick answer...
I included the line you sent me.
Now there are special chars displayed but these are no german special chars. Is there another possibility?
 [2001-10-23 04:36 UTC] christian dot storck at ron dot de
Sorry for the last message.
It?s working now!!!

Thanks a lot...
Christian

 [2001-10-23 04:41 UTC] sniper@php.net
Let's close this then. Hopefully we won't get this kind
of reports anymore. :)

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC