Un tableau présentant des paires de caractères accentués mal encodés (tels que é) avec des flèches indiquant leurs équivalents corrects (comme é), illustrant comment résoudre les problèmes courants d'encodage des lettres accentuées, notamment ceux causés par des paramètres d'encodage UTF-8 incorrects dans WordPress.

WordPress et encodage UTF-8

wordpress_icon_blue

J’ai mis à jour WordPress hier, entre deux corrections de copies. D’habitude lorsque je fais une grosse mise à jour, je la fait d’abord sur mon installation locale, sur ma machine.

Cela me permet de déceler les problèmes éventuels et de ne pas planter la base du site.

Cette fois-ci, non seulement je l’ai faite en locale mais je l’ai en plus faite sur un sous-domaine, histoire d’être vraiment sûr de mon coup. Mais cette fois-ci j’ai eu droit à une grosse étape supplémentaire, nécessaire pour la pérennité du site…

Lire WordPress et encodage UTF-8

Music notes

Three notes go into a bar…

The following story makes sense if you know some music theory :

music_notesC, E-flat, and G go into a bar. The bartender says, « Sorry, but we don’t serve minors. » So the E-flat leaves, and the C and the G have an open fifth between them. After a few drinks, the fifth is diminished; the G is out flat.

An F comes in and tries to augment the situation, but is not sharp enough. A D comes into the bar and heads straight for the bathroom saying, « Excuse me. I’ll just be a second. » An A comes into the bar, but the bartender is not convinced that this relative of C is not a minor.

Then the bartender notices a B-flat hiding at the end of the bar and exclaims, « Get out now! You’re the seventh minor I’ve found in this bar tonight. »

The E-flat, not easily deflated, comes back to the bar the next night in a 3-piece suit with nicely shined shoes. The bartender says: « You’re looking sharp tonight, come on in! This could be a major development. » This proves to be the case, as the E-flat takes off the suit, and everything else, and stands there au naturel.

Eventually, the C sobers up, and realizes in horror that he’s under a rest. The C is brought to trial, is found guilty of contributing to the diminution of a minor, and is sentenced to 10 years of DS without Coda at an upscale correctional facility.

On appeal, however, the C is found innocent of any wrongdoing, even accidental, and that all accusations to the contrary are bassless. The bartender decides he needs a rest – and closes the bar.

Lire Three notes go into a bar…