mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Merge pull request #9314 from Icinga/latin1
IDO MySQL: reason latin1 charset for actually UTF-8 bytes
This commit is contained in:
commit
f749c7556e
@ -266,6 +266,9 @@ void IdoMysqlConnection::Reconnect()
|
||||
BOOST_THROW_EXCEPTION(std::bad_alloc());
|
||||
}
|
||||
|
||||
/* Read "latin1" (here, in the schema and in Icinga Web) as "bytes".
|
||||
Icinga 2 and Icinga Web use byte-strings everywhere and every byte-string is a valid latin1 string.
|
||||
This way the (actually mostly UTF-8) bytes are transferred end-to-end as-is. */
|
||||
m_Mysql->options(&m_Connection, MYSQL_SET_CHARSET_NAME, "latin1");
|
||||
|
||||
if (enableSsl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user