Entity 'eacute' not defined

Permalink Browser Info Environment
Submitting forms that contain accented characters (é, è, ä, ö, etc.) renders a parser error (see attachment). My customers speak mostly french, I can't prevent them from using these letters.

Possible fix:http://stackoverflow.com/questions/3805050/xml-parser-error-entity-...

I'm due to hand my website over at the end of this week, would it be possible to have a look at this issue in the next few days?

Thanks a ton.

1 Attachment

Type: Discussion
Status: In Progress
View Replies:
malcolmisaacson replied on at Permalink Reply
after having taken a look at the file FormifyTemplate.php I found the relevant encoding rules at line 441 and 442, but they were commented out.

/*
$content = html_entity_decode($content);
$content = utf8_encode($content);
*/


After uncommenting both lines, everything seems to work. I hope I didn't break something else
malcolmisaacson replied on at Permalink Reply
My last reply ended up messing up more things. Here's a working fix.

To correct the way the notifications are encoded, open src/FormifyNotification.php, go to line 126 and change
$mh->setBodyHTML($html);
to
$mh->setBodyHTML(utf8_decode(utf8_decode($html)));
.

If you put accents in your field's names, they will also be messed up. Open src/FormifyField.php, go to line 93 and change
$field->$col = utf8_encode($val);
to
$field->$col = utf8_decode($val);
(utf8_ENcode to utf8_DEcode).

concrete5 Environment Information

irrelevant

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.