CertTools.stringToBCDNString("C=SE, O=���, CN=���"));
CertTools.stringToBCDNString("C=SE, O=?????????, CN=?????????"));
    public void test08SwedeChars() throws Exception {        log.debug(">test08SwedeChars()");        // Make user that we know...        boolean userExists = false;        try {            UserDataRemote createdata = userhome.create("swede", "foo123", "C=SE, O=���, CN=���", caid);            assertNotNull("Failed to create user foo", createdata);            createdata.setType(SecConst.USER_ENDUSER);            createdata.setSubjectEmail("swede@anatom.se");            createdata.setEndEntityProfileId(SecConst.EMPTY_ENDENTITYPROFILE);            createdata.setCertificateProfileId(SecConst.CERTPROFILE_FIXED_ENDUSER);            log.debug("created user: swede, foo123, C=SE, O=���, CN=���");        } catch (RemoteException re) {            if (re.detail instanceof DuplicateKeyException) {                userExists = true;            }        } catch (DuplicateKeyException dke) {            userExists = true;        }        if (userExists) {            log.debug("user swede already exists.");            UserDataPK pk = new UserDataPK("swede");            UserDataRemote data = userhome.findByPrimaryKey(pk);            data.setStatus(UserDataRemote.STATUS_NEW);            log.debug("Reset status to NEW");        }        keys = genKeys();        // user that we know exists...        X509Certificate cert = (X509Certificate) remote.createCertificate(admin, "swede", "foo123", keys.getPublic());        assertNotNull("Failed to create certificate", cert);        log.debug("Cert=" + cert.toString());        assertEquals("Wrong DN med swedechars", CertTools.getSubjectDN(cert),                CertTools.stringToBCDNString("C=SE, O=���, CN=���"));        //FileOutputStream fos = new FileOutputStream("swedecert.crt");        //fos.write(cert.getEncoded());        //fos.close();        log.debug("<test08SwedeChars()");    }