# HG changeset patch # User Adam Chlipala # Date 1454608893 18000 # Node ID fe6049d23ce5a702adfd6e2c41fda580c5ce0277 # Parent 4a0de889bcec13ce1160cef09ef529745b8bc918 Adding charset=utf-8 diff -r 4a0de889bcec -r fe6049d23ce5 mail.c --- a/mail.c Thu Feb 04 12:49:00 2016 -0500 +++ b/mail.c Thu Feb 04 13:01:33 2016 -0500 @@ -378,7 +378,7 @@ "Content-Type: multipart/alternative; boundary=\"%s\"\r\n" "\r\n" "--%s\r\n" - "Content-Type: text/plain\r\n" + "Content-Type: text/plain; charset=utf-8\r\n" "\r\n", separator, separator); out[sizeof(out)-1] = 0; @@ -397,7 +397,7 @@ snprintf(out, sizeof(out), "\r\n" "--%s\r\n" - "Content-Type: text/html\r\n" + "Content-Type: text/html; charset=utf-8\r\n" "\r\n", separator); out[sizeof(out)-1] = 0; @@ -425,7 +425,7 @@ return; } } else { - if (really_string(sock, "Content-Type: text/plain\r\n\r\n") < 0) { + if (really_string(sock, "Content-Type: text/plain; charset=utf-8\r\n\r\n") < 0) { close(sock); uw_set_error_message(j->ctx, "Error sending text Content-Type"); return;