Page 1 of 1

PhotoSwipe Umlaute

Posted: Mon Apr 19, 2021 7:14 pm
by joticakr
Hello Flatpress community,

I try to add image captions with help of the texte.conf file in the gallery folder. It's working fine but I'm not able to use ÄÖÜäöü. For the normal posts it's working fine. Do I have to add any more information to the texte.conf file.

BR, Johannes

Re: PhotoSwipe Umlaute

Posted: Thu Apr 22, 2021 6:14 am
by Arvid
Johannes,

what happens when you add an umlaut? Is it displayed weirdly, or do the captions disappear completely?

I suspect an encondig issue. It should work with texte.con encoded in UTF-8. (Under windows, I check - and change - the file encoding with Notepad++.)

(Damn, this reminds me painfully of my plan to finally build an admin panel for managing the captions... :roll: )

Let me know the results!
All the best
Arvid

Re: PhotoSwipe Umlaute

Posted: Thu Apr 22, 2021 6:47 am
by joticakr
Hello Arvid,

I checked the file by

Code: Select all

file -bi texte.conf
and it said it's utf-8. If I write Fläche, it's shown as Fläche.

BR, Johannes

Re: PhotoSwipe Umlaute

Posted: Thu Jun 03, 2021 11:04 am
by Arvid
Johannes,

this is kind of embarrassing: For Umlauts to be displayed correctly, the texte.conf had to be encoded in ISO 8859-1 (i.e., ANSI). UTF-8 encoded files would always lead to broken Umlauts :?
I fixed this, please see the latest version 1.0.4 of the PhotoSwipe plugin on our wiki: https://wiki.flatpress.org/res:plugins:photoswipe

Let me know if that works good for you!

All the best,
Arvid

Re: PhotoSwipe Umlaute

Posted: Thu Jun 03, 2021 11:27 am
by joticakr
Hey Arvid,

I just replaced the plug-in and everything works fine. Thank you!

Best regards,
Johannes

Re: PhotoSwipe Umlaute

Posted: Thu Jun 03, 2021 11:45 am
by Arvid
Glad to hear, immer wieder gern :)