]>
diplodocus.org Git - nmh/blob - sbr/check_charset.h
1 /* check_charset.h -- routines for character sets
3 * This code is Copyright (c) 2017, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information. */
8 * Returns the MIME character set indicated by the current locale setting.
9 * Should be used by routines that want to convert to/from the local
10 * character set, or if you want to check to see if you can display content
11 * in the local character set.
13 char *get_charset(void);
16 * Check to see if we can display a given character set natively.
19 * str - Name of character set to check against
20 * len - Length of "str"
22 * Returns 1 if the specified character set can be displayed natively,
25 int check_charset(char *, int);
28 * Output the local character set name, but make sure it is suitable for
31 char *write_charset_8bit(void);