mirror of https://github.com/Icinga/icinga2.git
IDO MySQL: reason latin1 charset for actually UTF-8 bytes
This commit is contained in:
parent
245fbad1e5
commit
11b8d0f058
|
@ -262,6 +262,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…
Reference in New Issue