On Sat, Oct 23, 2010 at 1:34 AM, Oleg Kalnichevski <[email protected]> wrote: > On Sat, 2010-10-23 at 01:24 +0330, John Smith wrote: >> Hi >> >> I'm receiving an utf-8 encoded redirect url's from a website, but it >> seems that httpclient (?) treat them as US-ASCII (?) so it can not >> handle them correctly. >> > > URLs are not meant to have any characters other than US-ASCII. > HttpClient's behavior is correct. > > >> Is there any way to correct this behavior? Or is there any way to >> convert incorrectly encoded string back to correct one (to be used in >> a custom redirect handler)? >> > > You can implement a custom redirect handler and reformat the redirect > location as you see fit > > Hope this helps > > Oleg >
Oleg, Thanks for quick response, but I have not found any way to reformat an incorrectly encoded string. I doubt that this possible at all. Is there any way to make HttpClient read headers as UTF-8 (even with modification to source code)? Wishes, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
