#1 Le 07/08/2015, à 17:31
- ar barzh paour
[Résolu] affichage inélégant de certains caractères
bon(soir) à tous
voilà ce que j'obtiens en voulant afficher un fichier (matos.html) avec mon navigateur par défaut (Mozilla Firefox).Remarque : ce fichier matos.html a été obtenu avec une commande unix
sudo lshw -html > matos.html
id:
core
description: Carte mère
produit: DG41TY
fabriquant: Intel Corporation
identifiant matériel:
0
version: AAE47335-204
numéro de série: AZTY925000DL
emplacement: To be filled by O.E.M.
le même fichier ouvert avec Ubuntu Web Browser ou Chromium
m'affiche les mêmes informations mais cette fois les accents sont bien positionnés
id:
core
description: Carte mère
produit: DG41TY
fabriquant: Intel Corporation
identifiant matériel:
0
version: AAE47335-204
numéro de série: AZTY925000DL
emplacement: To be filled by O.E.M.
les accents sont codifiés ainsi dans le fichier .html
è : C3 A8
é : C3 A9
etc
ma question :
comment dans Firefox obtenir l'affichage "normal" des accents ?
Dernière modification par ar barzh paour (Le 13/08/2015, à 05:48)
PC : B760M DS3H DDR4, 12th Gen Intel(R) Core(TM) i3-12100, RAM DDR4 8GiB -2400 Ubuntu 22.04, 22.04, 23.04
Portable1 : Intel(R) Core(TM)2 Duo CPU T6570 @ 2.10GHz RAM 4GiB DDR2 667 MHz Ubuntu 23.04 ( en voyage )
Portable2 : T5750 @ 2.00GHz RAM 1GiB DDR2 667 Mhz Ubuntu 20.04 ( batterie HS )
stourm a ran war bep tachenn (Angela Duval) ( Je combats sur tous les fronts )
Hors ligne
#2 Le 07/08/2015, à 18:37
- nam1962
Re : [Résolu] affichage inélégant de certains caractères
Essaie : Affichage / Encodage du texte / Détection automatique / désactivée
[ Modéré ]
Hors ligne
#3 Le 07/08/2015, à 21:57
- MicP
Re : [Résolu] affichage inélégant de certains caractères
…en voulant afficher un fichier (matos.html) avec mon navigateur par défaut (Mozilla Firefox) …
Il faudrait que tu nous donne les premières lignes (jusqu’à l’ouverture de la balise "body") du fichier, ou le fichier entier matos.html
En fonction de cet en-tête, on pourra sans doute se rendre compte qu’il y manque certaines informations comme le paramètre charset dont le navigateur a besoin pour afficher cette page web, et la langue dans laquelle ces pages ont été rédigées (ou/et qu’il y a une erreur de formulation).
=======
http://www.w3.org/International/tutoria … -char-enc/
http://www.w3.org/International/O-charset
www.w3.org/International/articles/defin … haracters/
Dernière modification par MicP (Le 07/08/2015, à 23:53)
Hors ligne
#4 Le 08/08/2015, à 08:24
- ar barzh paour
Re : [Résolu] affichage inélégant de certains caractères
merci pour vos réponses
@MicP
le début du fichier matos.html
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="lshw-B.02.16" />
<style type="text/css">
.first {font-weight: bold; margin-left: none; padding-right: 1em;vertical-align: top; }
.second {padding-left: 1em; width: 100%; vertical-align: center; }
.id {font-family: monospace;}
.indented {margin-left: 2em; border-left: dotted thin #dde; padding-bottom: 1em; }
.node {border: solid thin #ffcc66; padding: 1em; background: #ffffcc; }
.node-unclaimed {border: dotted thin #c3c3c3; padding: 1em; background: #fafafa; color: red; }
.node-disabled {border: solid thin #f55; padding: 1em; background: #fee; color: gray; }
</style>
<title>jpb-desktop</title>
</head>
@nam1962
Affichage / Encodage du texte / Détection automatique / est déjà désactivée
par contre
Affichage / Encodage du texte est positionné sur "occidental" , et en plaçant sur "Unicode" , l'affichage devient correct
mais si je ferme et ré-ouvre le fichier matos.html , l'affichage est toujours positionné sur occidental , donc affichage pas correct et je ne trouve pas l'endroit où l'on peut régler ce paramètre
Dernière modification par ar barzh paour (Le 08/08/2015, à 09:00)
PC : B760M DS3H DDR4, 12th Gen Intel(R) Core(TM) i3-12100, RAM DDR4 8GiB -2400 Ubuntu 22.04, 22.04, 23.04
Portable1 : Intel(R) Core(TM)2 Duo CPU T6570 @ 2.10GHz RAM 4GiB DDR2 667 MHz Ubuntu 23.04 ( en voyage )
Portable2 : T5750 @ 2.00GHz RAM 1GiB DDR2 667 Mhz Ubuntu 20.04 ( batterie HS )
stourm a ran war bep tachenn (Angela Duval) ( Je combats sur tous les fronts )
Hors ligne
#5 Le 08/08/2015, à 08:47
- ar barzh paour
Re : [Résolu] affichage inélégant de certains caractères
@MicP
d'après tes infos j'ai ajouté dans l'entête
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
et l'affichage est bon ,
donc mauvais codage via la commande lshw ? hélas la page http://lshw.org/ c'est du chinois pour moi!
et/ou mauvaise interprétation de firefox ?
...
la première ligne du fichier contenant
<?xml version="1.0" encoding="utf-8"?>
n'est pas suffisante ..
Dernière modification par ar barzh paour (Le 08/08/2015, à 11:21)
PC : B760M DS3H DDR4, 12th Gen Intel(R) Core(TM) i3-12100, RAM DDR4 8GiB -2400 Ubuntu 22.04, 22.04, 23.04
Portable1 : Intel(R) Core(TM)2 Duo CPU T6570 @ 2.10GHz RAM 4GiB DDR2 667 MHz Ubuntu 23.04 ( en voyage )
Portable2 : T5750 @ 2.00GHz RAM 1GiB DDR2 667 Mhz Ubuntu 20.04 ( batterie HS )
stourm a ran war bep tachenn (Angela Duval) ( Je combats sur tous les fronts )
Hors ligne
#6 Le 08/08/2015, à 09:56
- nam1962
Re : [Résolu] affichage inélégant de certains caractères
Tiens, chez moi aussi avec le réglage "désactivé" le codageactif (unicode/occidental) diffère suivant les pages que j'ouvre.
Sinon la page mère pour lshw c'est : http://www.ezix.org/project/wiki/HardwareLiSter
[ Modéré ]
Hors ligne