changeset 8:fe6049d23ce5

Adding charset=utf-8
author Adam Chlipala <adam@chlipala.net>
date Thu, 04 Feb 2016 13:01:33 -0500
parents 4a0de889bcec
children 8966edef462a
files mail.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;