[nist-sip] applying a encoding to message body

Young-Geun Park <[email protected]> Thu, 3 Sep 2009 09:14:26 +0900
Newsgroups gmane.comp.voip.jain-sip.user,gmane.comp.voip.nist-sip
Message-ID <[email protected]>
--0016e6546f3e384e960472a14420
Content-Type: text/plain; charset=ISO-8859-1

Hi, All

In the sIPMessage.encode() method,

only default encodingCharset, UTF-8, is applied to encoding message body.

If a Content-Type header has a charset parameter,

Should this parameter be applied instead of the default value?

Regards,

Park

--0016e6546f3e384e960472a14420
Content-Type: text/html; charset=EUC-KR
Content-Transfer-Encoding: quoted-printable

<div class=3D"Section1" style=3D"LAYOUT-GRID:  18pt none">
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim">Hi, All</span></font>=
</p>
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim"></span></font></p>
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim">In the sIPMessage.enc=
ode() method, </span></font></p>
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim">only default encoding=
Charset, UTF-8, is applied to encoding message body.</span></font></p>
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim"></span></font></p>
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim">If a Content-Type hea=
der has a charset parameter, </span></font></p>
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim">Should this parameter=
 be applied instead of the default value?</span></font></p>
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim"></span></font></p>
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim">Regards, </span></fon=
t></p>
<p class=3D"MsoNormal"><font face=3D"=B1=BC=B8=B2" size=3D"2"><span lang=3D=
"EN-US" style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Gulim">Park</span></font></p=
></div>

--0016e6546f3e384e960472a14420--