Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: A proposal to handle file encodings Date: Sat, 24 Nov 2012 00:53:51 +0100 Organization: albasani.net Lines: 25 Message-ID: References: <9kava8lk1ignppq7rso7gmcb541gnerf8q@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net vvJccPqjtAqYttTONUyesE8/rQ1wIpZjVVrqud4ElGouxXjLT7+Mio19tALiQVzmZaxhvc2mMOfZ/F8u6JQnbw== NNTP-Posting-Date: Fri, 23 Nov 2012 23:53:45 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="pknInjFImMQWtLhtoaS1MME3Dredm1fATEtQ6JO3nSK7LvaaazC9vXUtSURIZd4vFWrxR1lYz4qZhFpQEKns43b70lJoRK6acmXhYBzQRC+GVL43gpHfvTL585C4rNLK"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Firefox/16.0 SeaMonkey/2.13.2 In-Reply-To: Cancel-Lock: sha1:RKh0B1QQqzvs2uDTYgaOYL/rjn4= Xref: csiph.com comp.lang.java.programmer:19873 Peter J. Holzer schrieb: >> Scenario 2: >> >- HTTP returns mimetype=text/html; charset= >> > fetched from the HTML file meta tag. > Which web server does this? I think CERN httpd did, back in the 1990's, > but I don't think any of the current crop of servers does, at least not > without some extra plugins. Normally the charset is taken from the > server config. Its the only way to retrieve the charset: http://tools.ietf.org/html/rfc2045#section-5.1 Its also the only way to set the chartset in dynamic pages. For example in JSP one has to do the following: <%@page contentType="text/html; charset=UTF-8" %> There is a header field Content-Encoding, which is not what Roedy wants I guess. Since the term "Encoding" refers to compression here: http://en.wikipedia.org/wiki/HTTP_compression I guess Roedy wants the charset. Bye