Closed
Closed
Copy link
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 3.3.9 |
When serving pages in charset ISO-8859-15 instead of default UTF-8 and rendering a form MoneyType, currency symbol (€ in my case) is shown in wrong codification (see screen captures).
As additional information, this is my code in AppKernel.php
regarding charset:
/**
* Get the framework charset
*
* @return string The charset
*/
public function getCharset()
{
return 'ISO-8859-15';
}
And a link showing details of ISO-8859-15 charset, which supposedly has an euro (€) symbol. My twig template is also encoded in ISO-8859-15. A possible cause of this problem is that the source code file for money template is encoded in UTF-8, which is of course right.
I know I can override MoneyType template, but a correct solution, I think, is writing the euro symbol as the €
html entity, which is charset independant.