Page 1 of 1

Web page Create fails whith spaces in path

Posted: Thu Aug 25, 2005 5:31 pm
by ss02ss02
Hi,

I'm using Web page Create unchecking the "Copy source images to output folder" and specifying an Output directory that has spaces in it, eg "C:\Documents and Settings\ss02ss02\My Documents\My Pictures\tst1\" as a template I take "_Default - Frame". Hit create and so far so good the web pages get created....

When I open the index page, e.g. "C:\Documents and Settings\ss02ss02\My Documents\My Pictures\tst1\index.html" in Internet Explorer the thumbnails show, but the original pictures show the broken picture icon :!: Checking the pictures properties IE reports "file:///C|/Documents%2520and%2520Settings/ss02ss02/My%2520Documents/My%2520Pictures/E510%2520originals/DSCF0029.JPG".

It is the %2520 of course that is the problem - it should be %20. Checking the "picture name".html file shows that the (correct format of) img src="file://C|/Documents%20and%20Settings/ss02ss02/My%20Documents/My%20Pictures/E510%20originals/DSCF0029.JPG". It does not have the %25 so for some reason IE is translating the % to %25 :-(

The good news is that Firefox handles this just fine and displays the original pictures :P Problem of course is that I can't force everyone to use Firefox.

Can this be fixed and made to work using IE, am I doing something wrong, is this a :bug: ?

This is under Win2k sp04 + all fixes and IE version 6.0.2800 and XnView 1.8.1.

Thanks, JDH

Re: Web page Create fails whith spaces in path

Posted: Mon Aug 29, 2005 3:31 pm
by xnview
ss02ss02 wrote:Hi,

I'm using Web page Create unchecking the "Copy source images to output folder" and specifying an Output directory that has spaces in it, eg "C:\Documents and Settings\ss02ss02\My Documents\My Pictures\tst1" as a template I take "_Default - Frame". Hit create and so far so good the web pages get created....

When I open the index page, e.g. "C:\Documents and Settings\ss02ss02\My Documents\My Pictures\tst1\index.html" in Internet Explorer the thumbnails show, but the original pictures show the broken picture icon :!: Checking the pictures properties IE reports "file:///C|/Documents%2520and%2520Settings/ss02ss02/My%2520Documents/My%2520Pictures/E510%2520originals/DSCF0029.JPG".

It is the %2520 of course that is the problem - it should be %20. Checking the "picture name".html file shows that the (correct format of) img src="file://C|/Documents%20and%20Settings/ss02ss02/My%20Documents/My%20Pictures/E510%20originals/DSCF0029.JPG". It does not have the %25 so for some reason IE is translating the % to %25 :-(

The good news is that Firefox handles this just fine and displays the original pictures :P Problem of course is that I can't force everyone to use Firefox.

Can this be fixed and made to work using IE, am I doing something wrong, is this a :bug: ?

This is under Win2k sp04 + all fixes and IE version 6.0.2800 and XnView 1.8.1.
%20 is not a standard??

Posted: Mon Aug 29, 2005 4:15 pm
by helmut
I've just tried this out and could reproduce your problem. I don't have the "%2520" encoding for the spaces (which would be wrong), but the local UN link is not encoded properly.

Generated by XnView:

Code: Select all

...
<img src="file://D|/Projekt_XnView/Test-Bilder/Large%20images/Copy%20(10)%20of%20Copy%20(6)%20of%20Panorama1.jpg" alt="Copy (10) of Copy (6) of Panorama1.jpg" width="2272" height="3408">
...
I think that instead of the "file://D|..." it should say "file:///D:/...". (three slashes and colon).

Can some HTML experts confirm?

Right---

Posted: Mon Aug 29, 2005 4:44 pm
by Clo
• Hi !
I think that instead of the "file://D|..." it should say "file:///D:/...".
- Although I'm not an expert, I can say that "file:///D:/..." is the right usual syntax which works in HTML for a path to a local file…
I never saw a vertical bar “ | ” (pipe) here ! :P

:mrgreen: G
Claude
Clo