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

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

@pieterjandebruyne

Description

@pieterjandebruyne

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions