Open Bug 372474 Opened 17 years ago Updated 2 years ago

After "save page as, complete" opening the saved page is missing all images (WinXP & FF are Greek)

Categories

(Core :: DOM: Serializers, defect)

1.8 Branch
x86
Windows XP
defect

Tracking

()

People

(Reporter: gsou, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; el; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; el; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2

I saved the above mentioned page using "Save page as" & "complete page" on my desktop. The html file was created as well as the directory with the page's images. When I opened the saved page, it appeared with placeholders instead of the images.
I tracked the problem down to the representation of the greek characters, that are part of the local URL:
When I open the html file the address reads:
file:///C:/Documents%20and%20Settings/George/%CE%95%CF%80%CE%B9%CF%86%CE%AC%CE%BD%CE%B5%CE%B9%CE%B1%20%CE%B5%CF%81%CE%B3%CE%B1%CF%83%CE%AF%CE%B1%CF%82/GUIDE%20TO%20TSMEDE.htm
instead of:
file:///C:/Documents%20and%20Settings/George/%C5%F0%E9%F6%DC%ED%E5%E9%E1%20%E5%F1%E3%E1%F3%DF%E1%F2/GUIDE%20TO%20TSMEDE.htm
In the above URL "%C5%F0%E9%F6%DC%ED%E5%E9%E1%20%E5%F1%E3%E1%F3%DF%E1%F2" translates to "Επιφάνεια εργασίας" (="Desktop" for WinXP/Greek).
In the first URL the corresponding text translates to nonsense, but opens the file anyway.
Both URLs open the file, but this is not case with the images in the page.
For example the corresponding URLs for the first image of the page are:
file:///C:/Documents%20and%20Settings/George/%C5%F0%E9%F6%DC%ED%E5%E9%E1%20%E5%F1%E3%E1%F3%DF%E1%F2/GUIDE%20TO%20TSMEDE_%E1%F1%F7%E5%DF%E1/image004.gif
file:///C:/Documents%20and%20Settings/George/%CE%95%CF%80%CE%B9%CF%86%CE%AC%CE%BD%CE%B5%CE%B9%CE%B1%20%CE%B5%CF%81%CE%B3%CE%B1%CF%83%CE%AF%CE%B1%CF%82/GUIDE%20TO%20TSMEDE_%E1%F1%F7%E5%DF%E1/image004.gif
Unfortunately only the 1st opens the image.
I save the page in "Τα εγγραφά μου" (="My documents") and the same problem occured.
When I saved the page in another location, with no greek characters in the path, everything was ok.
BTW: Using a filename with greek characters for the html file itself does not produce any problem.


Reproducible: Always

Steps to Reproduce:
1. Visit the web page mentioned above
2. Save page as > Webpage, complete to a file in the desktop
3. Open the saved html file
Actual Results:  
The page appears with placeholders instead of the page's images

Expected Results:  
Displayed the page, just like the original page, including the images

The bug seems similar -but not the same as far as I can tell- to bug 361543
I noticed that in my windows explorer the html file's icon is from word. I thought this ment that the original page was created with MS Word, so I tried another page  (namely the English Wikipedia main page: http://en.wikipedia.org/wiki/Main_Page).
Following the same procedure the problem occured again, only the files icon is from Firefox. So this is not related to the origin of the html file. 
I cant reproduce this bug using the URL provided (http://www.tsmede.gr/guide/GUIDE%20TO%20TSMEDE.htm), so I have updated the URL to an Image: page on el.wikipedia.org.

Compare saving the following HTML files:

http://en.wikipedia.org/wiki/Image:Scream_4_Poster.jpg
http://el.wikipedia.org/wiki/%CE%95%CE%B9%CE%BA%CF%8C%CE%BD%CE%B1:%CE%9F%CE%9C%CE%A0%CE%A1%CE%91%CE%9E_1.jpg

The saved file has the following in the HTML:

<img src="_____a%20_______1.jpg_files/_1.jpg" ...>

And the JPEG is saved as `Εικόνα ΟΜΠΡΑΞ_1.jpg_files/_1.jpg"'
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → 2.0 Branch
Product: Firefox → Toolkit
Component: Downloads API → DOM: Serializers
Product: Toolkit → Core
See Also: → 1635463
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.