How to specify encoding in Java?

From: Konrad Den Ende (chamsterkonrad_at_bigfoot.com)
Date: 01/24/04


Date: Sat, 24 Jan 2004 22:30:29 +0100

I've been looking around and i've been given some hints but
i simply can't get to the bottom of it. How do i specify the
character encoding for reading text froma file?

-- 
Kindly
Konrad
---------------------------------------------------
May all spammers die an agonizing death; have no burial places; 
their souls be chased by demons in Gehenna from one room to 
another for all eternity and more.
Sleep - thing used by ineffective people
            as a substitute for coffee
Ambition - a poor excuse for not having
                 enough sense to be lazy
---------------------------------------------------


Relevant Pages

  • Re: URI without file extension
    ... Andreas Prilop is somewhat extremistic in the issue of declaring the character encoding. ... Using a tag to specify the character encoding, though illogical, is a method approved in the HTML 4.01 specification, and browsers are required to recognize it. ... Andreas is completely right in suggesting that authors should primarily try and find the way to set the real HTTP headers. ...
    (comp.infosystems.www.authoring.html)
  • Re: RSS feeds and HTML special characters
    ... to specify somewhere that the HTML document should be rendered as ... It's an important principle (see RFC2070 for the original ... character which is outside of the chosen character encoding. ... the old MIME terminology uses the attribute name "charset" to specify ...
    (comp.lang.perl.misc)
  • Re: Command line options: using an [option: parameter] without a parameter passed to it
    ... >>> switches with optional arguments. ... that must rely on the existence of a hash key is always slightly obscure. ... as you care to specify. ... "Reply" at the bottom of the article headers. ...
    (comp.lang.perl.misc)
  • Re: [PNP] Possible Newsworthy Post (Alert the Internet!)
    ... by "Archon Theo" in this thread (6th from the bottom pf page one)? ... That is a completely useless way of referring to a thread. ... Specify the ...
    (comp.sys.ibm.pc.games.rpg)
  • Re: Character encoding
    ... and although I specify ... Character Encoding mismatch! ... The character encoding specified in the HTTP header (utf-8) is ... If you had a decent host, ...
    (alt.html)