1998-11-30 22:32:20 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2000-04-21 00:20:31 -04:00
|
|
|
/* Registered charset names are at most 40 characters long. */
|
1998-11-30 22:32:20 -05:00
|
|
|
|
|
|
|
#define CHARSET_MAX 41
|
|
|
|
|
2000-04-21 00:20:31 -04:00
|
|
|
/* Figure out the charset to use from the ContentType.
|
2002-07-01 11:13:02 -04:00
|
|
|
buf contains the body of the header field (the part after "Content-Type:").
|
|
|
|
charset gets the charset to use. It must be at least CHARSET_MAX chars
|
|
|
|
long. charset will be empty if the default charset should be used.
|
|
|
|
*/
|
1998-11-30 22:32:20 -05:00
|
|
|
|
|
|
|
void getXMLCharset(const char *buf, char *charset);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|