把iso8859-1转为utf-8即可,因为openldap支持utf-8编码
如代码: p.setFullName(new String(request.getParameter("fullname").getBytes("ISO8859-1"),"UTF-8"));p.setLastName(new String(request.getParameter("lastname").getBytes("ISO8859-1"),"UTF-8"));
servlet 在取的时候也有iso8859-1 ---->utf-8
mysql 数据库编码:gbk2312