mirror of https://github.com/vitalif/phantomjs
Add command-line option to set terminal output encoding
parent
c3d7b2e918
commit
6254c84717
|
@ -133,6 +133,10 @@ Phantom::Phantom(QObject *parent)
|
|||
cookieFile = arg.mid(10).trimmed();
|
||||
continue;
|
||||
}
|
||||
if (arg.startsWith("--output-encoding=")) {
|
||||
Registry::terminal().setEncoding(arg.mid(18).trimmed());
|
||||
continue;
|
||||
}
|
||||
if (arg.startsWith("--")) {
|
||||
Registry::terminal().cerr(QString("Unknown option '%1'").arg(arg));
|
||||
m_terminated = true;
|
||||
|
|
|
@ -9,3 +9,4 @@ Options:
|
|||
--disk-cache=[yes|no] Enables disk cache (at desktop services cache storage location, default is 'no').
|
||||
--ignore-ssl-errors=[yes|no] Ignores SSL errors (i.e. expired or self-signed certificate errors).
|
||||
--local-access-remote=[yes|no] Local content can access remote URL (default is 'no').
|
||||
--output-encoding Sets (if available) the encoding used for terminal output (default is 'utf8').
|
||||
|
|
Loading…
Reference in New Issue