| 225 const gchar *enclist; |
225 const gchar *enclist; |
| 226 |
226 |
| 227 enclist = purple_account_get_string(irc->account, "encoding", IRC_DEFAULT_CHARSET); |
227 enclist = purple_account_get_string(irc->account, "encoding", IRC_DEFAULT_CHARSET); |
| 228 encodings = g_strsplit(enclist, ",", 2); |
228 encodings = g_strsplit(enclist, ",", 2); |
| 229 |
229 |
| 230 if (encodings[0] == NULL || !strcasecmp("UTF-8", encodings[0])) { |
230 if (encodings[0] == NULL || !g_ascii_strcasecmp("UTF-8", encodings[0])) { |
| 231 g_strfreev(encodings); |
231 g_strfreev(encodings); |
| 232 return g_strdup(string); |
232 return g_strdup(string); |
| 233 } |
233 } |
| 234 |
234 |
| 235 utf8 = g_convert(string, strlen(string), encodings[0], "UTF-8", NULL, NULL, &err); |
235 utf8 = g_convert(string, strlen(string), encodings[0], "UTF-8", NULL, NULL, &err); |