Closed sylvainjule closed 7 years ago
Why exactly is encoding Jörn
as Jörn
and Julé
as Julé
an issue? The names will still be rendered correctly on the screen.
The encoding is not, but when I say they are echoed like this, I mean they aren't rendered correctly without forcing them to be decoded :
Have you taken a screenshot of your own website or of the demo page? I’ve tested both Jörn and Julé on the demo page at https://kirby-comments.addpixel.net/demos/comments and they render correctly.
I was trying to reproduce this issue.
Happens with a fresh starterkit, I cloned it and put the plugin folder in, nothing more.
Are you using the latest version of both Kirby and Kirby Comments? I don’t seem to be able to reproduce this behaviour …
That's odd. Yes, I run the 2.5.5 version and the last Kirby Comments.
I’ve downloaded the latest version of Kirby, installed the latest release on Kirby Comments, included the standard snippet in the article.php and it works just fine …
Have you edited the site/config.php and maybe changed something there?
Tested on
I have not edited anything, aside from adding the comments snippet.
I just added the snippet before the closing </article>
so that we have the same comparison scenario.
I can add the name and preview the comment with the correct characters. So when I submit the comment the name is still fine.
But if I refresh my browser, the character isn't rendered.
Tested on macOS 10.12.4 with PHP 5.6.25 and PHP 7.0.10 (using MAMP) on Apache.
OK, thank you! I tested the preview and the submission, but have never reloaded the page after submitting it. I can reproduce this behaviour and will look into it!
I’ve located the bug and will submit a bugfix shortly.
The fix now is on master. You can clone the latest version or download the latest release. Thank you again for your help!
Encoding the name's html entities leads to issues with some names.
Jörn
is echoed as :Jörn
Julé
is echoed as :Julé
This PR decodes those characters.
(unless there was a reason not to decode them ?)