W3C home > Mailing lists > Public > www-international@w3.org > January to March 2002

Encoding used for strings sent through http response header

From: souravm <souravm@infy.com>
Date: Wed, 20 Feb 2002 08:48:52 +0530
Message-ID: <755FA95DB839D211856B0008C7287D930DE6A928@kecmsg02.ad.infosys.com>
To: <www-international@w3.org>
Hi All,

A doubt regarding the encoding used for strings sent through http
response header.

Let us assume that a JSP is written where at the first line using
content type the encoding for the page is set to UTF-8. After that a
response header field, say hdrError,  is set where the value set is non
english string.

My doubt is whether for this header field hdrError also the encoding
applied while sending the request will be UTF-8 ? Or in this case the
encoding applied will be default encoding type of JVM   ?

Suppose this response is recieved through HTTPURLConnection object (i.e.
the request itself was sent by HTTPURLConnect). Now if one extracts the
value stored against hdrError by using getHeaderField() method of
HTTPURLConnection object what will be the encoding assumed for the input
string ?

Reagrds,
Sourav
Received on Tuesday, 19 February 2002 22:22:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:16:58 GMT