Space in URL fails to launch the browser ???

Developers
Jetic
2008-02-26
2013-04-30
  • Jetic

    Jetic - 2008-02-26

    Hi

    if I try to launch a browser with

    BrowserLauncher bl = new BrowserLauncher();
    bl.openURLinBrowser("local/file 1.html");

    the main browser opens with two tabs:
    one: file///local/file
    two: http://www.1.html

    If I try to replace the space in the URL
    bl.openURLinBrowser("local/file%201.html");

    he main browser opens
    file:///local/file%25201.html

    because he replaces the "%" with %25

    How to solve this problem?

    I'm using BrowserLauncher2 package.

    THANK YOU!!

     
    • Jeff Chapman

      Jeff Chapman - 2008-02-29

      Which O/S are you running on?

      I suspect this is some flavor of Windows.

      You may need to provide the protocol with the url. For example:

      bl.openURLinBrowser("file://local/file 1.html");

      Let me know if providing the protocol solves the problem.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks