[Mono-list] None ASCII Chars in DirectorySearcher's Searchstring

Zone t.fischer at servonic.de
Fri Apr 9 05:39:58 EDT 2010


Hi,

i am searching entries in a LDAP directory.
Everything work fine, but when i set the Filter to contain a none ASCII
character (e.g. äöü) i get a empty result.
I traced the LDAP-Request on the server when executing the same search from
Mono and .Net.
.Net -> None ASCII characters where correctly UTF-8 encoded 
Mono -> None ASCII characters seem to be encoded UTF-8 (length is correct)
but all bytes of the character are set to zero. (e.g Search string contains
"Müller" is transmitted as "4d 00 00 6c 6c 65 72")

The filter string i assign to my directory search is allready UTF-8 encoded.
Am i doing something wrong or is there another way execute such searches?

Thank you!

Additional Details:

namespace: System.DirectoryServices;
class name: DirectorySearcher
used function: FindAll();

tested on Ubuntu 9.10 with Mono 2.4.2.3 and OpenSuse 11.1 with Mono 2.6.3
-- 
View this message in context: http://n4.nabble.com/None-ASCII-Chars-in-DirectorySearcher-s-Searchstring-tp1819113p1819113.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list