Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

iconv error on special last character in rich text field #384

Open
pieterjandebruyne opened this issue May 7, 2019 · 0 comments
Open

iconv error on special last character in rich text field #384

pieterjandebruyne opened this issue May 7, 2019 · 0 comments

Comments

@pieterjandebruyne
Copy link

pieterjandebruyne commented May 7, 2019

Hi,

Error on saving entries when we have a rich text field ending in a special character (like é, ö, ...) is used to generate SEO keywords using the "Keywords from field" option and the field with the character..

It works when there is a space behind the character but otherwise it crashes on a iconv error..

Seems to be fixed in craft 3 but not for the craft 2 plugin

craft/plugins/seomatic/services/SeomaticService.php(3316)
$text = iconv(mb_detect_encoding($text, mb_detect_order(), true), "UTF-8//IGNORE", $text);

Screenshot-2019-05-07-at-10-29-19
Screenshot-2019-05-07-at-10-29-47

Info:
Craft CMS 2.7.8
SEOmatic 1.1.56
PHP 7.1.25

Also tested on:
Craft CMS 2.6.3012
SEOmatic 1.1.56

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant