Properly declare charset for text messages.
authorOlle Johansson <oej@edvina.net>
Wed, 14 May 2008 14:03:42 +0000 (14:03 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 14 May 2008 14:03:42 +0000 (14:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116239 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 1b767c8..a976e4f 100644 (file)
@@ -8002,7 +8002,7 @@ static int transmit_response_with_auth(struct sip_pvt *p, const char *msg, const
 static int add_text(struct sip_request *req, const char *text)
 {
        /* XXX Convert \n's to \r\n's XXX */
-       add_header(req, "Content-Type", "text/plain");
+       add_header(req, "Content-Type", "text/plain;charset=UTF-8");
        add_header_contentLength(req, strlen(text));
        add_line(req, text);
        return 0;