Commit da14147f authored by David Schulz's avatar David Schulz Committed by Eike Ziller
Browse files

Editor: Set default editor file text encoding to UTF-8



because Qt5 requires it

Task-number: QTCREATORBUG-7420

Change-Id: I0823c4701d5f1fef202fb38e423275bb9d3a66fe
Reviewed-by: default avatarLeandro Melo <leandro.melo@nokia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 29e8a5c0
......@@ -2087,6 +2087,8 @@ QTextCodec *EditorManager::defaultTextCodec() const
if (QTextCodec *candidate = QTextCodec::codecForName(
settings->value(QLatin1String(Constants::SETTINGS_DEFAULTTEXTENCODING)).toByteArray()))
return candidate;
if (QTextCodec *defaultUTF8 = QTextCodec::codecForName("UTF-8"))
return defaultUTF8;
return QTextCodec::codecForLocale();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment