You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Symfony 4.4, I have a fixture load class, and execute it via bin/console doctrine:fixtures:load --append. The values loaded in database are incorrectly encoded.
The database and tables are UTF8. The text file containing the loader is also UTF8 encoded, the connection is supposed to be configured as UTF8 (maybe the syntax for this changed in latter versions?).
These are some relevant parts of my code:
The string in the loader script (note the euro symbol):
$documentContent = [ 'content' => 'Lorem ipsum %CONTRACT_AMOUNT% €'];
In Symfony 4.4, I have a fixture load class, and execute it via
bin/console doctrine:fixtures:load --append
. The values loaded in database are incorrectly encoded.The database and tables are UTF8. The text file containing the loader is also UTF8 encoded, the connection is supposed to be configured as UTF8 (maybe the syntax for this changed in latter versions?).
These are some relevant parts of my code:
The string in the loader script (note the euro symbol):
File config/packages/doctrine.yaml:
Values in database:
The text was updated successfully, but these errors were encountered: