Hi Felix,
Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.
Thanks for your understanding!
Best regards,
Gary Chang
Microsoft Community Support
--------------------
Get Secure! ??C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.
> Hi,
> I am trying to make a WebRequest (Method Get) to a webserver and I
[quoted text clipped - 11 lines]
> the quotes).
> Why doesn't this work? google Interprets the request as L??L
Note that there's no default character set defined for URL-encoding
non-ASCII characters. You're assuming UTF-8, which actually works with
Google.
You're also decoding the response using ASCII encoding, which loses all
umlaut characters (Google serves ISO-8859-1). I guess you also need to
send a couple of HTTP headers like Accept-Language, because Google
seems to take that into consideration as well.
Cheers,

Signature
http://www.joergjooss.de
mailto:news-reply@joergjooss.de
edx - 22 Jan 2005 11:37 GMT
Hi!
Thanks for your reply, I managed to do it. It seems that google consider's
the user-agent when processing the search request. So here's my new source
which works for "Umlauts" as well :)
String ^r = String::Format
("http://www.google.com/search?hl=en&q={0}",
s->ToString ());
HttpWebRequest ^wr = (HttpWebRequest ^)HttpWebRequest::Create
(Uri::EscapeUriString (r));
wr->Headers->Add ("Accept-Language:en-us");
wr->Accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*";
wr->Headers->Add ("Accept-Encoding", "deflate");
wr->UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
Maxthon; .NET CLR 1.1.4322; .NET CLR 2.0.41115)";
HttpWebResponse ^response = (HttpWebResponse ^)wr->GetResponse ();
Thank you very much,
Felix Arends
> > Hi,
> > I am trying to make a WebRequest (Method Get) to a webserver and I
[quoted text clipped - 22 lines]
>
> Cheers,