Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant