Development

#9571 (Set encoding when mbstring extension is used)

You must first sign up to be able to contribute.

Ticket #9571 (new defect)

Opened 2 years ago

Set encoding when mbstring extension is used

Reported by: frost-nzcr4 Assigned to: fabien
Priority: minor Milestone:
Component: configuration Version: 1.4.9
Keywords: Cc:
Qualification: Unreviewed

Description

When I set charset to utf8 (apps/frontend/config/settings.yml: all -> .settings -> charset), in my snippet mb_strtoupper() still used iso-8859-1 as default charset.

These setters helps me, maybe they might be used in default symfony installation?

mb_internal_encoding(sfConfig::get('sf_charset'));
mb_regex_encoding(sfConfig::get('sf_charset'));
mb_http_output(sfConfig::get('sf_charset'));
mb_language('uni'); // for emails