I want to add link to local file to Remark. It works fine if file path/name doesn't contains space(s). But I can't make link to file with spaces in file/path name. HowTo? file://x:\xxxx%20xxxxxx.yyy doesn't works ....

Capture.PNG (6.57 KiB) Viewed 10020 times

Windows 7x64 SP1 CN 3.0

Last edited by Ovg on Sun Dec 13, 2015 9:14 am, edited 3 times in total.

It's impossible to lead us astray for we don't care even to choose the way.CN 3.11 LifeTime Pro Licence / Windows 7 SP1 x64

The %20 not working may be a bug that has been introduced, because that is the official way to do it:viewtopic.php?f=6&t=1239

However, %20 will still work in at least one situation - but I don't think it will work for you, as your folder path has the folder with the space as the very first folder. On my system, this works:file:///c:\Users/Chris/Pictures/Screen%20Captures

Note that:a. The first slash after the drive is a back slash, while all the other slashes are forward slashes;b. The first folder does not have a space.

If I replace the forward slashes with back slashes, %20 does not work.

Now, if we use a path where the folder with the space is the first folder - such as in your example:file:///D:/GOG.com%20Downloadsfile:///D:\GOG.com%20Downloads

Neither of those actually work, as the slash after the drive letter must be a backslash - and %20 appears to break with backslashes.

tl;dr - I think this may be a bug. Alex will have to confirm this though - there may be a supported way to do this (it isn't listed in the help file though, I checked - I also tried the usual quoting characters, ie " ' <>).

I have found another issue with links. Links with '&' sign inside isn't recognizing by CN now, but if I change a few backslashes (\) before '&' sign to slashes (/) and then return them again to backslashes, it will.

PS All type of links are affected.

WBR, Oleg

Capture.png (12.1 KiB) Viewed 9891 times

Capture2.PNG (16.5 KiB) Viewed 9890 times

It's impossible to lead us astray for we don't care even to choose the way.CN 3.11 LifeTime Pro Licence / Windows 7 SP1 x64

There are a number of characters affected - + for example (eg C:\TempFiles\Test+Test.txt is cut off at the first 'Test'). Alex will probably have to give some thought about what characters are allowed in Windows filenames - a question that is not as easy to answer as what you may think - and then go through and make sure all are covered.

Found another character that breaks the file link scheme - the comma. So this filename for example is not recognised:Senator Heroically saves Obsolete Program, 20,000 Coincidental Jobs in his State.mp4

Comma is %2C for example, so my example filename will be:Senator%20Heroically%20saves%20Obsolete%20Program%2C%2020%2C000%20Coincidental%20Jobs%20in%20his%20State.mp4

I know at one point in time, I had a program installed that could decode these characters (handy for pasting in a encoded URL to get the more plain language version of it), but I'm not aware of one that goes back the other way. There is probably an obscure website somewhere where you can paste filenames to be encoded though.