Following a migration, character encoding issue
-
Hello everyone,
Following the migration of my server to Debian Bullseye and Fog 1.5.10.1734, I have noticed problems with characters that contain accents.
Is this a bug in this version, or have I forgotten something?Thanks!
Example :

-
@Bristow-0 I’m pretty sure its your systems fonts don’t have a way to represent those particular characters. The encoding displays correctly on my machine looking in a terminal.
I’m assuming this worked, then you did an update and it stopped working? I might look at what fonts recently got updated or removed?
-
Indeed, it worked before the migration.
Accented characters work on the terminal connected to my server.
However, it is strange that it displays the ç and the spanish ñ correctly on the home page. It seems that only the é and è are not working…
Look :

-
Maybe this is my translation file submitted a few years ago?
-
@Bristow-0 I’m not able to replicate the issue:

-
Arghh

I tried to apply this command without any conclusive results:
msgfmt -o /var/www/html/fog/management/languages/fr_FR.UTF-8/LC_MESSAGES/messages.mo /var/www/html/fog/management/languages/fr_FR.UTF-8/LC_MESSAGES/messages.poI did see the accents once or twice (after
msgfmtcommand), but they disappeared after two clicks or connecting to Fog. Very strange… -
@Bristow-0 I don’t know what OS you’re running:
php-gettext or php-php-gettext is the module you’ll need installed (pretty sure it already is but maybe there’s some unexpected collision occurring?)
If you’re on debian, you my need to also reconfigure the fr_FR.UTF-8
sudo dpkg-reconfigure localesscroll down to the fr_FR.UTF-8 selector and ensure it’s selected.Tab to Ok, on the next screen choose your default (or change it if you want) and click ok. It shoudl reconfigure the languages.
Other os’s the glibc/lanugage packs just need to be installed.
-
@Bristow-0 Just cause I’m a dweeb:
You can simplify this command for reformatting with:
msgfmt -o /var/www/html/fog/management/languages/fr_FR.UTF-8/LC_MESSAGES/messages.{m,p}oTheoretically. I don’t think it’d cause issues, but explicit is known for sure.
-
I’m on Debian Bullseye.
I can’t install php-gettext, and i installed php-php-gettext (not installed), restart php7.4 but no better.