Smarty: special characters get modified unwanted utf8

I have data with special characters (French shock grave). When I select a PHP script and output (print), it looks fine. When I switch to Smarty, the characters change. My html has the following settings: meta http-equiv = "content-type" content = "text / html; charset = utf-8" Don't know what is missing or incorrect?

gr patrick

+5
source share
1 answer

Put this at the top of your php file and check:

// utf-8

header ("Pragma: no-cache"); header ('Content-type: text / html; charset = utf-8');

// mbstring UTF8 encoding (optional)

mb_detect_order ( ('UTF-8', 'ASCII')); mb_internal_encoding ( 'UTF-8'); mb_http_output ( 'UTF-8'); mb_regex_encoding ( 'UTF-8');

0

All Articles