Copyin a string to webbrowser
-
My goal is to open a URL in the default web browser. The URL is stored in a string variable. I use the following code to launch the browser: system.Diagnostics.Process.Start(URL_string) The browser pops up and opens the right site... if I don't use any scandinavian characters (ä, ö, å). If use Mozilla Firefox as my default browser, these characters will be converted to HTML-format (e.g. "ä" --> "%%C3%A4"). Internet Explorer doesn't do this. How would it be possible to open Firefox so that it doesn't change anything in the string I'm using? The problem is that not all web pages support this kind of HTML-converting (they have a different character encoding) and therefore these pages won't open due to a faulty URL.
-
My goal is to open a URL in the default web browser. The URL is stored in a string variable. I use the following code to launch the browser: system.Diagnostics.Process.Start(URL_string) The browser pops up and opens the right site... if I don't use any scandinavian characters (ä, ö, å). If use Mozilla Firefox as my default browser, these characters will be converted to HTML-format (e.g. "ä" --> "%%C3%A4"). Internet Explorer doesn't do this. How would it be possible to open Firefox so that it doesn't change anything in the string I'm using? The problem is that not all web pages support this kind of HTML-converting (they have a different character encoding) and therefore these pages won't open due to a faulty URL.
Maybe my question was confusing. I try again: When I launch the browser with a string that contains URL, the URL-string is somehow changed when it moved to browser address bar. When there is a "ä" in the string, the browser gives %E4. Also the &-characters are converted to some %XX-form. Is there a way to prevent this happening? I would like to paste the URL as it is to browser and not change it at all.