Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 72156 invoked from network); 17 Jul 2008 16:01:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2008 16:01:00 -0000 Received: (qmail 98905 invoked by uid 500); 17 Jul 2008 16:00:56 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 98720 invoked by uid 500); 17 Jul 2008 16:00:55 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 98709 invoked by uid 99); 17 Jul 2008 16:00:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 09:00:55 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.202.165.182] (HELO smtpauth02.prod.mesa1.secureserver.net) (64.202.165.182) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 Jul 2008 16:00:01 +0000 Received: (qmail 24736 invoked from network); 17 Jul 2008 16:00:13 -0000 Received: from unknown (71.239.140.137) by smtpauth02.prod.mesa1.secureserver.net (64.202.165.182) with ESMTP; 17 Jul 2008 16:00:13 -0000 Message-ID: <487F6C8C.9030508@rowe-clan.net> Date: Thu, 17 Jul 2008 11:00:12 -0500 From: "William A. Rowe, Jr." User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: Apache - MS LDAPSDK with multi-byte DN References: <486abc49ec741@wp.pl> <486CB68F.8080206@gmx.de> <486ccf96c4751@wp.pl> <486D264A.5090004@gmx.de> <487e2f9addad5@wp.pl> <487E5CF3.2030108@rowe-clan.net> <487E6044.10203@ptc.com> <1404e5910807170528o2ea28e0dgbb5f7477052ddc6b@mail.gmail.com> <487F5E8B.5070200@ptc.com> <1404e5910807170811i13c1e1bey6f81337d2026a8e1@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Stusynski, Dan wrote: > > The corrupt DN is coming back with a hex value of 3F (question mark) > when the sequence should be hex values e68891 (or 346\210\221) in > decimal). That's correct. Windows utf-8 code page 65001 or so is only a psuedo page in all older and (afaik) newer flavors of windows). So it's returning this character in the local code page, can't represent it, and falls back on '?'. Using the FnW equivilant, treating the args as utf-8 and passing the args as unicode to ldap_search_ext_sW and resolving the return value back to utf-8 would resolve your issues.