Hi John,
thank you very much for your reply!
Yes, you’re right, I’ve forgotten, that we discussed this problem in the past, because there were some other problems I had to solve.
I deactivated the other plugins, but without success.
I’m working with a custom taxonomy ‘Themen’, where the terms are ‘Schauspieler’, ‘Musiker’, and ‘Schriftsteller’. Additionally to the breadcrumb navigation, I added two static items ‘Frauen’ and ‘M?nner’, to filter the results. The URL looks like this: mydomain.com/schauspieler/maenner/
‘Frauen’ and ‘M?nner’ are originally query-strings, which I changed to pretty permalinks -> mydomain.com/schauspieler/?g=maenner/
To create the breadcrumb in the browser source code I used this code in functions.php
$new_breadcrumb = new bcn_breadcrumb('M?nner', '', array($slug), get_site_url().$_SERVER['REQUEST_URI']);
array_splice($breadcrumb_trail->breadcrumbs, -4, 0, array($new_breadcrumb));
The browser source code looks like this:
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"https://mydomain.com","name":"My Website"}},{"@type":"ListItem","position":2,"item":{"@id":"https://mydomain.com/schauspieler/","name":"Schauspieler"}},{"@type":"ListItem","position":3,"item":{"@id":"https://mydomain.com/schauspieler/maenner/","name":"M\u00e4nner"}}]}</script>
Do you have an idea, what causes the wrong character?
Thanks in advance!
Andreas