diff --git a/gophernicus.h b/gophernicus.h index 7fc21c3..aa08f98 100644 --- a/gophernicus.h +++ b/gophernicus.h @@ -215,7 +215,7 @@ size_t strlcat(char *dst, const char *src, size_t siz); #define DEFAULT_CGI "/cgi-bin/" #define DEFAULT_USERDIR "public_gopher" #define DEFAULT_WIDTH 67 -#define DEFAULT_CHARSET US_ASCII +#define DEFAULT_CHARSET UTF_8 #define MIN_WIDTH 33 #define MAX_WIDTH 200 #define UNKNOWN_ADDR "unknown" diff --git a/options.c b/options.c index 2732fc3..cd099e1 100644 --- a/options.c +++ b/options.c @@ -118,6 +118,7 @@ void parse_args(state *st, int argc, char *argv[]) case 'w': st->out_width = atoi(optarg); break; case 'o': if (sstrncasecmp(optarg, "UTF-8") == MATCH) st->out_charset = UTF_8; + if (sstrncasecmp(optarg, "US-ASCII") == MATCH) st->out_charset = US_ASCII; if (sstrncasecmp(optarg, "ISO-8859-1") == MATCH) st->out_charset = ISO_8859_1; break;