> -----Ursprüngliche Nachricht-----
> Von: Ingo Meyer [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 25. Januar 2006 13:19
> An: 'HttpClient User Discussion'
> Betreff: german umlauts öüä
> 
> Hi there,
> 
> I have a problem loading a page from www.autoscout24.de.
> It is a german page where one can view used car ads.
> 
> While i load them with a windows computer everthing is fine 
> but running the programm under linux it will not work.
> I recovered the problem to the fact that they send a result 
> with these german signs called "Umlaut" (ö,ü,ä) and not the 
> corrsponding entity ü or ä.
> On linux these page shows my in the eclipse debugger just a 
> question-mark even when i just look to the response string at 
> runtime, so without safing them to hd.
> 
> It has something to do with the encoding, i create the string 
> reading the charset from the header of the response and do:
> 
> new String (bytes, charSet);
> 
> but on these page there is no charset given.

Sorry, i found into the html code the following tag:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

So i have to recreate the string with this charset after i have created it
without a charset
and it works.

To anybody: Does this means that in html standardly the "iso-8859-1" is
taken?

then i will always call: new String (bytes, "iso-8859-1");



> 
> You will find the page when you search for a a brand, lets 
> say "Alfa Romeo"
> and on the
> result page you find the "next page"-link, named "nächste". 
> This link is my problem...
> 
> 
> Thanks for help in advance
> 
> Ingo Meyer
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to