Post form data be converted to HTML entities in CakePHP 2.x


#1

All data from HTML form be converted to HTML entities.
E.g.

  • à => &agrave ;
  • á => &aacute ;
  • € => &euro ;

I need to save some special characters(à á ì …) to MySQL but only save HTML entities(&agrave, …) instead.
Currently config:

  • mysql: utf8_general_ci
  • database config: ‘encoding’ => ‘utrf-8’
  • html page: charset utf-8
  • form accept-charset=‘utf-8’

This is the post data that I got:
Screenshot%20from%202018-02-27%2010-30-40

Please help me!


#2

Hello, use utf 8 Spanish 2.