getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

Encoding-issue in the new table-layout #4442

Closed KGS-Rastede closed 2 years ago

KGS-Rastede commented 2 years ago

I just converted a blog to the new table-layout: https://getkirby.com/docs/reference/panel/sections/pages#layout__table-layout

Using "'" in titles breaks the table-layout encoding. Here is an article:

grafik

Here is the same article in the panel

grafik

In the regular view it works:

grafik

Some kind of encoding issue. The original file is encoded in UTF8 and can be found here:

https://gitlab.com/cniehaus/homepage/-/blob/master/content/1_blogs/20220624_rassismus-geht-uns-alle-an/blogartikel.txt

KGS-Rastede commented 2 years ago

I forgot to mention: This is PHP 7.4.9 on Windows 10 / WAMP with Kirby 3.7.0.1

gilbertnigg commented 2 years ago

Same here with ampersand; PHP 8.0.8 MAC/MAMP / Kirby 3.7.0.1

Bildschirmfoto 2022-06-28 um 20 31 19

But (again) a great extension to Kirby anyway, congrats!

teichsta commented 2 years ago

can confirm this:

image

blueprint seems to be configured correctly:

columns:
  topic:
    label: Themenwelt
    html: true
    value: "{{ page.topic.toPage.title }}"
teichsta commented 2 years ago

any idea, where this issue is being positioned on the kirby roadmap @distantnative ? Any chance to get it into 3.7.1 ?

lukasbestle commented 2 years ago

Workaround: If you set the column to type: text or type: html explicitly, it seems to render correctly.

medienbaecker commented 2 years ago
CleanShot 2022-08-01 at 08 43 17@2x

It also happens for special structure previews like select fields.

distantnative commented 2 years ago

If any of you want to try this fix https://github.com/getkirby/kirby/pull/4543 would be great to get additional feedback if this solves the issues.

bastianallgeier commented 2 years ago