From: Olle Johansson Date: Wed, 14 May 2008 14:03:42 +0000 (+0000) Subject: Properly declare charset for text messages. X-Git-Tag: 1.6.2.0-beta1~2247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f07454f25dedc376b034fd88ddf2366c3900cd98;p=thirdparty%2Fasterisk.git Properly declare charset for text messages. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116239 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1b767c8906..a976e4fbc2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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;