We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39583
    • 103 Posts

    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!

    This question has been answered by security. See the first response.

      --
      André
    • discuss.answer
      • 26564
      • 162 Posts
      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);