🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #355

Re: Default Charset

#355
From: Vander
Date: Fri, 22 Apr 2005 13:10
16 lines
1784 bytes
What I have found sofar is that for retrieving the current VM default 
charset in Java 5 there is a valid "(Charset) Charset.defaultCharset()" 
but this method does not exist in Java 1.4.2.

In 1.4.2 I only came across a dog's ear implementation like

(Charset) Charset.forName( new OutputStreamWriter(
           new ByteArrayOutputStream()).getEncoding() );

There is also a system property named "file.encoding" which renders an 
alias of the default charset. But this feature is not documented for 
1.4.2 and is not reliable, as alterations to the system property does 
not affect the default charset.

As for actually changing the default charset I am left deserted still.
Technical Details
Message-ID: <4268f7ca$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4267c61a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,3eaae3c6db006d8f
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 22 Apr 2005 15:10:26 +0200
From: Vander <874505@gmx.de>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Default Charset
References: <4267c61a$1@newsgroups.borland.com>
In-Reply-To: <4267c61a$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.226.30.228
Message-ID: <4268f7ca$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114175434 62.226.30.228 (22 Apr 2005 06:10:34 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail