Greek entities in source code

Hello
Dolibarr 22.0.2, greek language. Everything is fine except the source code
I see greek entities in source code next to greek letters.
Inside database text is in greek, collation is utf8mb4_general_ci

title="ΡΟΛΟ">ΡΟΛΟ

Any idea why i see these and how i can fix it?

Hey!

This looks like an HTML entity encoding issue where Greek characters are getting double-encoded. The entities like ΡΟΛΟ are HTML representations of Greek letters that should normally be decoded to display as ΡΟΛΟ.

First thing to check is your conf.php file - make sure the database charset is properly set to utf8mb4. Also verify that your web server is serving pages with the correct UTF-8 charset in the HTTP headers.

The issue might be in how translations are being processed. Check if you have any custom translation files or if you’ve modified language files. Sometimes when copying text between different encoding systems, characters can get converted to HTML entities.

You could also try clearing the Dolibarr cache (delete everything in documents/admin/temp) and check if the problem persists. If you’re using a custom theme or have modified templates, that could also cause encoding issues.

Worth checking the browser’s developer tools to see what charset is being declared in the page headers. If it’s not UTF-8, that might explain why the entities aren’t being properly decoded.

If this started happening after an update, you might want to check the GitHub issues for similar encoding problems in version 22.0.2.

Clément Houde - Founder of Dolicraft

1 Like