4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: a6504150 on September 26, 2010, 11:33:53 PM

Title: Umlaute beim FTP Upload - mal geht es, mal nicht
Post by: a6504150 on September 26, 2010, 11:33:53 PM
Hallo zusammen,


hab jetzt die ganze menge Topics im Forum durchgelesen, habe aber keine vernünftige Lösung meines Problems gefunden, bitte um eure Hilfe!


Also, ich versuche ein Bild (namens "Bild mit äöüß.jpg") über FTP hochzuladen, gehe dann "Neue Bilder Checken". Alle IPTC Schlüsselwöter, Kommentare usw. sind richtig angezeigt, nur der Name nicht, wird dann auf "Bild mit äöüß".

Das komischste dabei ist, dass wenn ich es von meinem lokalen Server (Denwer) ausführe - dann ist der Name problemlos übernommen! Screenshot ist im Attach.


Verstehe dann einfach nicht - es geht eigentlich, was habe ich dann falsch bei meinem Online-Server??


Danke im Voraus für eure Hilfe!

Title: Re: Umlaute beim FTP Upload - mal geht es, mal nicht
Post by: V@no on September 27, 2010, 02:05:02 AM
Hello and welcome to 4images forum.

It seems the issue is due to differences in character encoding on your local server versus web server. It also looks like you were using different browsers for your local server and web server. Test it in the same browser and check View menu -> Encoding, make sure on both servers it set to the same encoding.
Title: Re: Umlaute beim FTP Upload - mal geht es, mal nicht
Post by: a6504150 on September 27, 2010, 04:37:13 AM
Vano, Thanks for your rapid answer!


The funniest thing is, that the encodings ARE the same and the browsers too. I've checked this on the last Firefox 3.6, IE8 and in Chrome 7.

There are now 2 screens from both the sites:

1. the first is a local one under the Denwer

2. the second one is from the web


You see, it's the same browser and the same encodings. Only the results ARE NOT...
Title: Re: Umlaute beim FTP Upload - mal geht es, mal nicht
Post by: V@no on September 27, 2010, 04:56:16 AM
Interesting.

What if you upload that image via ACP (Admin Control Panel) ?
Title: Re: Umlaute beim FTP Upload - mal geht es, mal nicht
Post by: a6504150 on September 27, 2010, 07:18:00 AM
Interesting.

What if you upload that image via ACP (Admin Control Panel) ?

Yep, me too =)

Via ACP is everything OK, plz see the screens
Title: Re: Umlaute beim FTP Upload - mal geht es, mal nicht
Post by: V@no on September 28, 2010, 06:06:23 AM
the thing is, I can't reproduce this on my local and remote servers...there must be something like system's locale or something interference with this. By the letters count it looks like the server converts these letters into multi-byte (UTF8/Unicode) charset... I'd bet if you change in your browser charset to UTF8 it would show the name correctly

If you wish, PM me with FTP login info to your server so I could do some testings.
Title: Re: Umlaute beim FTP Upload - mal geht es, mal nicht
Post by: a6504150 on September 28, 2010, 05:28:11 PM
I'd bet if you change in your browser charset to UTF8 it would show the name correctly

yep, the name is correct now. But ONLY the name :). All other words with Umlauts are now rubbisch


UPD: PM is out
Title: Re: Umlaute beim FTP Upload - mal geht es, mal nicht
Post by: V@no on September 29, 2010, 06:15:22 AM
Ok, here is what I found out:
Your server saves files into the encoding your ftp client is setup to. I'm testing it with FireFTP and it has option to change encoding. When I changed to ISO-8859-1 it would save and show filenames correctly in 4images.


I've updated your checkimages.php with auto conversion from UTF-8 to ISO-8859-1 charset, theoretically it should now work with UTF8 encoding in your ftp client. If you have problem with that you can turn it off via $convert_encoding variable.

I'll release this version which includes some bug fixes later at [MOD] Check new images in ALL categories (http://www.4homepages.de/forum/index.php?topic=4754.0)
Title: Re: Umlaute beim FTP Upload - mal geht es, mal nicht
Post by: a6504150 on September 29, 2010, 09:06:50 AM
Hi Vano,

yes, now the name is right, thanks!

I'm using FileZilla (3.3.2.1) and have found no option for encoding.. well, it doesn't matter, we have the solution and it works :)

Thanks one more time!