<![CDATA[ Make submissions UTF8 encoded? - My Forums]]> https://forums.modx.com/thread/?thread=91842 <![CDATA[Make submissions UTF8 encoded?]]> https://forums.modx.com/thread/91842/make-submissions-utf8-encoded#dis-post-501813 Is there a way to modify this plugin or if there is a setting I have missed to get special characters working?

I've tried to use mxFormBuilder with a page made in german, but all special characters are changed to html encoded characters. So characters like åäö are converted to öäåö.
Any suggestions on how I can fix this?

This is a great plugin by the way! Good work!]]>
phacer Jun 30, 2014, 08:28 AM https://forums.modx.com/thread/91842/make-submissions-utf8-encoded#dis-post-501813
<![CDATA[Re: Make submissions UTF8 encoded? (Best Answer)]]> https://forums.modx.com/thread/91842/make-submissions-utf8-encoded#dis-post-504090 Quote from: phacer at Jun 30, 2014, 01:28 PM

Is there a way to modify this plugin or if there is a setting I have missed to get special characters working?

I've tried to use mxFormBuilder with a page made in german, but all special characters are changed to html encoded characters. So characters like åäö are converted to öäåö.
Any suggestions on how I can fix this?

This is a great plugin by the way! Good work!

In core/components/mxformbuilder/model/mxformbuilder/mxformbuilder.class.php

45    $this->properties[$this->modx->sanitizeString($p)] = !is_array($v) ? htmlentities($v) : $this->modx->sanitize($v);


45   $this->properties[$this->modx->sanitizeString($p)] = !is_array($v) ? htmlentities($v,ENT_QUOTES,'UTF-8') : $this->modx->sanitize($v);
]]>
security Jul 22, 2014, 07:51 AM https://forums.modx.com/thread/91842/make-submissions-utf8-encoded#dis-post-504090