directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrique Rodriguez <enriqu...@gmail.com>
Subject Re: LDAP protocol implementation and data containing accents
Date Wed, 31 Aug 2005 11:25:08 GMT
Niclas Hedhman wrote:
> On Wednesday 31 August 2005 17:34, Emmanuel Lecharny wrote:
> 
>>So you always should use a new String("Jérôme", "UTF-8") before sending
>>data to Ldap. It applies to search filters, too.
> 
> I think you are somewhat mistaken. The above constructor doesn't exist, nor 
> makes any sense.

Constructor doesn't exist, but how about:

try
{
     String string = new String( "Jérôme".getBytes( "UTF-8" ), "UTF-8" );
}
catch (UnsupportedEncodingException e)
{
}

Enrique

Mime
View raw message