WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 25.10.2018 18:43:16

gks
Mitglied

Zeichensatzproblem extCal

Hello,
thank you for updating the extcal-module!
i have tried extcal and i've tried to display an ics-file, which was exported from Lightning-Plugin for Thunderbird.

There is a problem with german language:
for example „Gründonnerstag“ is displayed as „Gründonnerstag“.

How can i change this behavier?

Thanks and please excuse my bad english.
GKS


WBCE Version: 1.6.2
PHP Version: 8.1.27
MySQL Version: 5.7.38
Hoster: Strato  facepalm

Offline

#2 26.10.2018 00:08:04

mrbaseman
Developer

Re: Zeichensatzproblem extCal

Hi,

that's an encoding issue. I do see exactly the same problem: On my Ubuntu I have LANG=de_DE.utf8 and the file system also UTF8 capable. Using cat, less, vi... it's displayed correctly as "Gründonnerstag", but in nedit, which still uses an iso10646 font, it's displayed as "Gründonnerstag".

extcal even tries to solve such an encoding issue and uses the php command "htmlentities" to turn the input into "Gründonnerstag", which will then be rendered on the client, independent of the language settings there. But this will only work if the ics file on the server side uses the correct encoding for the special characters that shall be turned into html codes.

BTW, there is an extcal version 1.2.1 available, but the changes made there are not relevant to WBCE.

Offline

#3 26.10.2018 08:45:45

florian
Administrator

Re: Zeichensatzproblem extCal

Just an annotation: There's no reason to write in english here. You can, but you do not have to.

Wie lässt sich das Zeichensatzproblem denn konkret lösen? z.B. indem die ICS-Datei zunächst lokal mit Notepad++ geöffnet wird und zu UTF-8 konvertiert wird?


Code allein macht nicht glücklich. Jetzt spenden!

Offline

Liked by:

thanks

#4 26.10.2018 10:44:43

mrbaseman
Developer

Re: Zeichensatzproblem extCal

florian schrieb:

Wie lässt sich das Zeichensatzproblem denn konkret lösen? z.B. indem die ICS-Datei zunächst lokal mit Notepad++ geöffnet wird und zu UTF-8 konvertiert wird?

Ja, genau. Oder wenn man die Quelle kontrolliert, von der das ics file kommt, dass man dort bereits auf UTF-8 umstellt. Im Fall von Thunderbird hilft vielleicht dieser Artikel.

Offline

#5 28.10.2018 22:51:24

gks
Mitglied

Re: Zeichensatzproblem extCal

Hallo zusammen,
danke für die Antworten. Ich habe im Thunderbird nachgeschaut, dort hatte ich bereits utf-8 eingestellt.

Nun habe ich den Kalender mit notepad++ geöffnet, er ist utf-8 codiert. Daran liegt es also nicht.
Die Seiteneinstellung in WBCE unter Grundeinstellungen > Erweiterte Optionen > Zeichensatz ist übrigens utf-8

Ich freue mich also auf weitere Anhaltspunkte, wo man was ändern könnte.

Just an annotation: There's no reason to write in english here. You can, but you do not have to.

Das macht es mir erheblich leichter big_smile

Nochmals danke, GKS

Beitrag geändert von gks (28.10.2018 22:51:59)


WBCE Version: 1.6.2
PHP Version: 8.1.27
MySQL Version: 5.7.38
Hoster: Strato  facepalm

Offline

#6 29.10.2018 09:11:18

florian
Administrator

Re: Zeichensatzproblem extCal

Gibt es eventuell serverseitig eine abweichende Einstellung für default_charset?
(siehe phpinfo)

(P.S. Ich habe die Beiträge vom Ankündigunsthread abgetrennt)

Beitrag geändert von florian (29.10.2018 09:12:27)


Code allein macht nicht glücklich. Jetzt spenden!

Offline

Fußzeile des Forums

up