Lines Matching refs:charset
50 /* Given a string containing "charset=XXX", return the encoding if found,
55 char *charset;
60 str = strcasestr (str, "charset=");
65 charset = str;
68 while (*charset && !c_isspace (*charset))
69 charset++;
72 charset = strdupdelim (str, charset);
74 /* Do a minimum check on the charset value */
75 if (!check_encoding_name (charset))
77 xfree (charset);
81 /*logprintf (LOG_VERBOSE, "parse_charset: %s\n", quote (charset));*/
83 return charset;
329 set_uri_encoding (struct iri *i, char *charset, bool force)
331 DEBUGP (("URI encoding = %s\n", charset ? quote (charset) : "None"));
336 if (charset && !strcasecmp (i->uri_encoding, charset))
341 i->uri_encoding = charset ? xstrdup (charset) : NULL;
346 set_content_encoding (struct iri *i, char *charset)
348 DEBUGP (("URI content encoding = %s\n", charset ? quote (charset) : "None"));
353 if (charset && !strcasecmp (i->content_encoding, charset))
358 i->content_encoding = charset ? xstrdup (charset) : NULL;