Change default string encoding

Now by default it uses Printable string and only if
the value can't be encoded as printable string it will use
UTF-8 instead.
This commit is contained in:
Christian Hohnstaedt 2010-07-15 20:54:23 +02:00
parent ac371b697a
commit fb62b3aba8
2 changed files with 5 additions and 3 deletions

View File

@ -171,7 +171,7 @@ MainWindow::MainWindow(QWidget *parent )
statusBar()->addWidget(dbindex, 1);
mandatory_dn = "";
string_opt = "pkix";
string_opt = "MASK:0x2002";
setupUi(this);
setWindowTitle(tr(XCA_TITLE));

View File

@ -30,9 +30,11 @@ Options::Options(MainWindow *parent)
nid = OBJ_sn2nid(CCHAR(dnl[i]));
extDNlist->insertItem(0, OBJ_nid2ln(nid));
}
string_opts << "pkix" << "nombstr" << "utf8only" << "default";
string_opts << "MASK:0x2002" << "pkix" << "nombstr" <<
"utf8only" << "default";
QStringList s;
s << tr("PKIX recommendation in RFC2459 (default)")
s << tr("Printable string or UTF8 (default)")
<< tr("PKIX recommendation in RFC2459")
<< tr("No BMP strings, only printable and T61")
<< tr("UTF8 strings only (RFC2459)")
<< tr("All strings");