Kris-B / nanoGALLERY

image gallery simplified - jQuery plugin. Touch enabled, responsive, justified/cascading/grid layout and it supports pulling in Flickr, Google Photos and self hosted images.
https://nanogallery2.nanostudio.org/
438 stars 101 forks source link

Unable to display picture containing special characters like äöü #54

Closed jheinitz closed 9 years ago

jheinitz commented 9 years ago

Hello,

I'm trying to automate the creation of the HTML page containing a Gallery using a shell script by going through all files in a given directory. I made a lot of progress and it works as expected.

However, some of my pictures and thumbnails are not displayed. I came across the fact that all these items have in common that they contain atleast one of the characters äöüÄÖÜß. Is there anything I can to to make it work without renaming files from ö to oe?

My encoding is: ISO-8859-1:1998 (Latin-1, West Europe)

Kind regards

Jens

Kris-B commented 9 years ago

Hallo Jens, Actually these characters should be supported. Do you have any error in the browser debugger console? Can you provide a HTML sample page? Thanks.

jheinitz commented 9 years ago

Hi Christophe!

I prepared a small demo page containing three times excatly the same picture with different names. Only the first is displayed when I use ue instead of ü. The ISO-8591 encoding does not work and I'm not sure if the other one is the UTF-8 encoding. Maybe you have an idea how to sort it out.

Here is the link to the page: http://seboto.myftp.org/nanoUMLAUTE/index.html

Thanks and best regards

Jens

2014-11-06 22:46 GMT+01:00 Christophe Brisbois notifications@github.com:

Hallo Jens, Actually these characters should be supported. Do you have any error in the browser debugger console? Can you provide a HTML sample page? Thanks.

— Reply to this email directly or view it on GitHub https://github.com/Kris-B/nanoGALLERY/issues/54#issuecomment-62057227.

Kris-B commented 9 years ago

Hey Jens! Thanks for the test page! I'll check this in the middle of next week.

VG Christophe

jheinitz commented 9 years ago

Hi Kris!

I have checked my access.log from my apache2 server and I can see that it tries to request a file called

notebook01-jh.seboto.de - - [12/Nov/2014:20:21:15 +0100] "GET /nanoUMLAUTE/images_t//2_L%C3%BCbeck_Holstentor_t.jpg HTTP/1.1" 404 246 "http://seboto.myftp.org/nanoUMLAUTE/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36"

I have learned that %C3%BC is another representation for 'ü'. Maybe that helps you to figure it out. Could it be that some kind of url encoding/decoding is missing?

Best regards

Jens

Kris-B commented 9 years ago

Hi Jens, I've tried to access directly the 2nd image from my browser. I retrieved the image URL from the source code of the page: http://seboto.myftp.org/nanoUMLAUTE/images/2_Lübeck_Holstentor.jpg

This image is not accessible. Can you please check this URL from your browser? --> try to display that image in your browser without using the plugin. Can you display the image? If not, can you give me the correct URL for this image? Thanks.

jheinitz commented 9 years ago

Hi Christophe!

My files are not encoded in UTF-8, but in ISO-8859-1. Please see the directory on my server:

http://seboto.myftp.org/nanoUMLAUTE/images/

Best regards Jens Gesendet von meinem Smartphone ...

Am 12. November 2014 22:18:01 schrieb Christophe Brisbois notifications@github.com:

Hi Jens, I've tried to access directly the 2nd image from my browser. I retrieved the image URL from the source code of the page: http://seboto.myftp.org/nanoUMLAUTE/images/2_Lübeck_Holstentor.jpg

This image is not accessible. Can you please check this URL? --> try to display that image in your browser without using the plugin. Can you display the image? If not, can you give me the correct URL for this image? Thanks.


Reply to this email directly or view it on GitHub: https://github.com/Kris-B/nanoGALLERY/issues/54#issuecomment-62795122

Kris-B commented 9 years ago

If this is still an issue for you, please open a new issue in the repo https://github.com/Kris-B/nanoPhotosProvider

thx.