/* check_charset.h -- routines for character sets * * This code is Copyright (c) 2017, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ /* * Returns the MIME character set indicated by the current locale setting. * Should be used by routines that want to convert to/from the local * character set, or if you want to check to see if you can display content * in the local character set. */ char *get_charset(void); /* * Check to see if we can display a given character set natively. * Arguments include: * * str - Name of character set to check against * len - Length of "str" * * Returns 1 if the specified character set can be displayed natively, * 0 otherwise. */ int check_charset(char *, int); /* * Output the local character set name, but make sure it is suitable for * 8-bit characters. */ char *write_charset_8bit(void);