German Umlaute not displayed

On my website German Umlaute are displayed correctly, only in URLs in the textareas they are disabled. Any idea why?

Bildschirmfoto 2023-07-12 um 22.20.48

For some reason the text inside of your links is being html encoded twice. To start debugging this, we need to find out where this happens. Could you share the content file of this page (where “In anderen Umständen” is saved) with us?
You’ll find this in a subfolder of the /content folder, in a .txt file.

Also, please share the part of the template where this is getting outputted.

Title: In anderen Umständen

----

Projecttitle: In anderen Umständen. Webdokumentation

----

Category: Montage

----

Genre: Dokumentarfilm, Dokumentation, Interview, Portrait

----

Tatigkeit: Montage, Farbkorrektur, Tonmischung

----

Bereich: Inklusion, Film

----

Client: Anne Scheschonk & Offener Kanal Merseburg-Querfurt

----

Year: 2023

----

Text:

(link: https://www.in-an-um.de text: *In anderen Umständen* target: _blank) ist eine Webdokumentation. 12 Menschen mit Lernschwierigkeiten erzählen von ihren Erfahrungen mit Kinderwunsch und Elternschaft. Und sie fordern von der Gesellschaft: Wir wollen andere Umstände!

Jede:r Protagonist:in wird auf der barrierefreien Webseite in mehreren Filmen vorgestellt: Es gibt pro Person eine Botschaft, einen Film mit Alltagsszenen und ein längeres Gespräch. Bis zum Internationalen Tag für Menschen mit Behinderungen am 3. Dezember 2023 werden alle Filme nach und nach veröffentlicht. Wir übernehmen die Montage eines Teils der Filme.

----

Credits:

Konzept, Regie: Anne Scheschonk

Redaktion: Anne Scheschonk, Andrea Rüthel

Bildgestaltung: Markus Kloth

Tonaufnahme: Claus Störmer

Montage (weitere Filme): Peter Bräunig/ Blende39

Barrierefreie Filmfassungen: Jana Keuchel/ INKKfilm

DGS: Katja Fischer/ FISCHSIGNS

Webdesign: Lena Toschka/ black to wild

Programmierung: Manuel Graupner/ Kayba

Filmstills © Markus Kloth/ Anne Scheschonk, *In anderen Umständen*, 2023

----

Vimeolinks:

                  <p><?= $project->text()->html()->kirbyText() ?></p>
                  <div class="more-credit-info"><?= $project->credits()->html()->kirbyText() ?></div>

When I remove ->kirbyText() the Umlaute are displayed correctly, but then the link is not linked

I’d try 2 things:

  1. Remove ->html():
$project->text()->kirbyText()
  1. If that still doesn’t work try moving the asterisks out of the link tag:
*(link: https://www.in-an-um.de text: In anderen Umständen target: _blank)*

Using html and kirbytext together causes the double html escaping.
Using only kirbytext should do the trick. There is also kirbytextinline but it looks like you need to render multiple paragraphs with your text field.

You could also remove the <p> tags in your template. HTML will still render properly both ways though.

<p><?= kirbytext('lorem ipsum') ?></p>
<!-- Results In -->
<p><p>lorem ipsum</p></p>

<?= kirbytext('lorem ipsum') ?>
<!-- Results In -->
<p>lorem ipsum</p>

<p><?= kirbytextinline('lorem ipsum') ?></p>
<!-- Results In -->
<p>lorem ipsum</p>

Edit: @rasteiner beat me to it :wink:

Oh, I’ve missed that part. :eyes:
The browser will create empty paragraphs, which probably creates extra (I assume unwanted) spacing:

<p><p>text</p></p>

Is parsed as
<p></p><p>text</p>

So yes, I’d remove that pair of <p> tags.

Perfekt, it works. Thank you, all :boom: