PHP strange characters on transalation

123 Views Asked by At

I have a application made in PHP, on this application I have the option to translate the page with some languages, but if I try to translate to Spanish the characters with accent marks, shows a question mark symbol (�) like: acci�n.

To generate the transalation files, i'm using the following command:

msgfmt messages.po -o messages.mo

On my file .po, with the following structure from top to bottom:

msgid "Yes"
msgstr "Si"

On twig:

{% trans "Yes" %}

My mysql is set to UTF-8(but in this case I'm not using info from the database) , all my .php files are set with UTF-8 encoding, my html pages too. I don't why this happen? Could it be nginx configuration?

0

There are 0 best solutions below