mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Fixed incorrect display of SQL calltips containing non-US-ASCII characters.
QScintilla was incorrectly converting the text of the calltips to Latin1 although the encoding was set to UTF-8. This fixes #1107 (Russian) and #1206 (Korean).
This commit is contained in:
@@ -386,7 +386,12 @@ void QsciScintilla::callTip()
|
||||
ct = ct_entries.join("\n");
|
||||
}
|
||||
|
||||
QByteArray ct_ba = ct.toLatin1();
|
||||
QByteArray ct_ba;
|
||||
if (isUtf8())
|
||||
ct_ba = ct.toUtf8();
|
||||
else
|
||||
ct_ba = ct.toLatin1();
|
||||
|
||||
const char *cts = ct_ba.data();
|
||||
|
||||
SendScintilla(SCI_CALLTIPSHOW, adjustedCallTipPosition(shift), cts);
|
||||
|
||||
Reference in New Issue
Block a user