cannot write an entry which contains a three byte utf8 char for example chinese whereas a two byte char for example greek works

VERIFIED INVALID

Status

Directory
LDAP Java SDK
P3
normal
VERIFIED INVALID
19 years ago
18 years ago

People

(Reporter: Gudrun.Brunsch, Assigned: miodrag)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Comment hidden (empty)

Comment 1

19 years ago
Reassigning to Miodrag.

Gudrun, can you please provide a more detailed description of the problem?  What 
error is thrown?  What classes and methods are you using?  Sample code and a 
sample entry would help.
Assignee: mcs → miodrag
(Reporter)

Comment 2

19 years ago
I would like to write chinese characters to the directory using the Java Ldap 4.0 classes; it does not work with Java LDAP 3.0 either. I try to modify an existing entry by using 
LDAPConnection.modify(). In the LDAP ModificationSet I can see the three bytes in utf-8 which represent the one chinese unicode character in the LDAPAttribute. Trying to do the 
modify() I run into netscape.ldap.LDAPException with detailedMessage is "Server down", backtrace is 0x18a:class( netscape.ldap.LDAPConThread), resultCode is 80, errorMessage and 
matchesDN are null. When I try to write the same entry directly after the first attempt but without the chinese character it works fine.
This only happens with a chinese character which is represented by three bytes in  utf-8; with a greek character which only has two byte in utf-8 character it works fine.
(Assignee)

Comment 3

19 years ago
Changed status to assigned.
Status: NEW → ASSIGNED
(Reporter)

Comment 4

18 years ago
Hi,
I solved the problem; it wasn't the ldap library, but my own fault. Sorry about the confusion.
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → INVALID

Comment 5

18 years ago
Reporter problem not ours. Marking as verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.