Search code examples
phpcakephpencodingspecial-characterscharacter

Non-English characters in CakePHP


I'm having a problem with CakePHP. My application is not echoing out any non-English character(ñ,á,é). I'm not having that problem with raw PHP but the framework seems to be working odd about the encoding. I've already tried putting this line in the header of the layout files but it keeps failing: <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
Hope you guys can help me out. Thank you.


Solution

  • Make sure you have saved your file with UTF-8 encoding.