pike.git
/
lib
/
modules
/
Sql.pmod
/
mysql.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/mysql.pike:658:
CH_DEBUG ("Switching charset from %O to %O (due to charset arg).\n", \ restore_charset, charset); \ ::big_query ("SET character_set_client=" + charset); \ /* Can't be changed automatically - has side effects. /mast */ \ /* ::big_query("SET character_set_connection=" + charset); */ \ } else \ restore_charset = 0; \ } \ \ else if (send_charset) { \
-
string new_send_charset
;
\
+
string new_send_charset
=
send_charset;
\
\ if (utf8_mode & LATIN1_UNICODE_ENCODE_MODE) { \ if (String.width (query) == 8) \ new_send_charset = "latin1"; \ else { \ CH_DEBUG ("Converting (mysql-)latin1 query to utf8.\n"); \ query = utf8_encode_query (query, latin1_to_utf8); \ new_send_charset = "utf8"; \ } \ } \