Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MoneyType renders incorrect symbol for currency € when serving pages in ISO-8859-15 #25135

Copy link
Copy link
Closed
@nzurita

Description

@nzurita
Issue body actions
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).

imagen
imagen

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.