Guys,

I suggest you simply find an already created library that translates URLS. That way, you can use it without worrying that you are introducing untested code. If there are errors, they will be fairly simple ones having to do with the how you used the new library. As you've discovered the spaces problem has been found and fixed many many times. Best not to reinvent the world.

Ray

Eric Lavarde - FreeMind wrote:
Hello,

googling for url and unc, you'll see that we're not alone with this issue.

In order to not reinvent the wheel, I would suggest to use (and document)
the specs defined by OOo under
http://udk.openoffice.org/cpp/man/spec/uris.html

Assuming we settle on this resolution, it doesn't resolve all issues, some
questions remain:

1. URLs need to be translated back and forth between file format, internal
representation, user entry (through file dialog or manually aka Ctrl+K)
and command line call (click on the link, possibly platform dependent).
The rules for these translations need to be clarified as well.

2. How links coming from 0.8.0 are to be translated into the agreed format?

3. Less important perhaps, how links coming from 0.9.0.BetaN are to be
translated into the agreed format?

And I think that, now that we've got the issue, this needs to be fixed
prior to release of 0.9.0.

Eric

Dimitri Polivaev said:
  
Dear Dan and Chris,

I support the request of Dan. Consider that maps can not be opened from
network drives any more since the discussed changes have been done, and I
consider it to be a real show stopper.

Look into
http://sourceforge.net/forum/forum.php?thread_id=2085778&forum_id=320014
for more info.

Kind regards,
Dimitry

-------- Original-Nachricht --------
    
Datum: Wed, 25 Jun 2008 11:51:21 +0200
Von: "Dan Polansky" <dan.polansky@gmail.com>
An: freemind-developer@lists.sourceforge.net
Betreff: Re: [Freemind-developer] URLs of local files - spaces
      
Dear Chris,

You write that "Spaces must not occur in URLs." Is there any basis for
the
quoted statement? And on the supposition that they must not, how is it
that
they do occur in URLs in OpenOffice and in Microsoft Office? From what I
understand, file URLs were originally not URLs proper; they were not
specified in some of the first RFCs that specifed what a URL is. I do
not
know the state of the matter today, but if the major providers of office
software keep the spaces, I do not think there can be any basis for the
strong normative (not descriptive and not scientifically testable)
statement
"Spaces must not occur in URLs of life."

The usability concern, for me and, judging from some forum messages, for
other users, is that spaces are easier to read, easier to enter
manually,
they are pasted into FreeMind from other applications, and are the de
facto
standard in file URLs. That is why I think that spaces should (weak
non-descriptive requiring statement) be kept, instead of being replaced
with
"%20".

Best regards,
Dan


On Wed, Jun 25, 2008 at 10:58 AM, Christian Foltin
<christian.foltin@gmx.de>
wrote:

      
Hi Dan,

what is the reason? Spaces must not occur in URLs. Even for local
        
files,
      
the URLS contain %20 instead (verify with your browser, please). We
        
have
      
fixed the issue with windows2k in opening this form of URL and now,
everything works as expected, AFAIK.

Regards,

Chris
-------- Original-Nachricht --------
        
Datum: Wed, 25 Jun 2008 09:58:01 +0200
Von: "Dan Polansky" <dan.polansky@gmail.com>
An: freemind-developer@lists.sourceforge.net
Betreff: [Freemind-developer] URLs of local files - spaces
          
Dear Chris,

I have created a new issue in the Issues tracker, requiring that
          
spaces
      
in
        
the URLs of local files are left unconverted to "%20".

See also:

          
http://sourceforge.net/tracker/index.php?func=detail&aid=2002285&group_id=7118&atid=1006953
      
Best regards,
Dan
          
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger


        
-------------------------------------------------------------------------
      
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Freemind-developer mailing list
Freemind-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freemind-developer

        
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Freemind-developer mailing list
Freemind-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freemind-developer