Lines Matching refs:charset
48 /* Given a string containing "charset=XXX", return the encoding if found,
53 char *charset;
58 str = strcasestr (str, "charset=");
63 charset = str;
66 while (*charset && !c_isspace (*charset))
67 charset++;
70 charset = strdupdelim (str, charset);
72 /* Do a minimum check on the charset value */
73 if (!check_encoding_name (charset))
75 xfree (charset);
79 /*logprintf (LOG_VERBOSE, "parse_charset: %s\n", quote (charset));*/
81 return charset;
339 set_uri_encoding (struct iri *i, char *charset, bool force)
341 DEBUGP (("URI encoding = %s\n", charset ? quote (charset) : "None"));
346 if (charset && !strcasecmp (i->uri_encoding, charset))
351 i->uri_encoding = charset ? xstrdup (charset) : NULL;
356 set_content_encoding (struct iri *i, char *charset)
358 DEBUGP (("URI content encoding = %s\n", charset ? quote (charset) : "None"));
363 if (charset && !strcasecmp (i->content_encoding, charset))
368 i->content_encoding = charset ? xstrdup (charset) : NULL;