tech:caractere_speciaux_unicode_utf8
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:caractere_speciaux_unicode_utf8 [2026/06/19 11:19] – Jean-Baptiste | tech:caractere_speciaux_unicode_utf8 [2026/06/19 16:14] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 41: | Ligne 41: | ||
| Donne : ✗ | Donne : ✗ | ||
| - | https:// | + | Voir : |
| - | + | * https:// | |
| - | https:// | + | |
| - | + | | |
| - | https:// | + | |
| - | + | ||
| - | http:// | + | |
| Ligne 112: | Ligne 110: | ||
| ~~~ | ~~~ | ||
| + | |||
| + | ### Pb accent - grep ou diff | ||
| + | |||
| + | Diff NOK lors de : | ||
| + | ~~~bash | ||
| + | docker exec 171daa9d9f62 cat plop.txt > / | ||
| + | diff / | ||
| + | ~~~ | ||
| + | |||
| + | Et grep message `binary file matches` alors qu'il s'agit bien d'un fichier texte. | ||
| + | |||
| + | ~~~ | ||
| + | $ grep red / | ||
| + | grep: / | ||
| + | |||
| + | $ file plop.txt | ||
| + | plop.txt: ISO-8859 text | ||
| + | |||
| + | $ grep --text red / | ||
| + | ## environnement redondM-i$ | ||
| + | |||
| + | $ grep --text red / | ||
| + | grep: (standard input): binary file matches | ||
| + | |||
| + | $ grep --text red / | ||
| + | ## environnement redond | ||
| + | ~~~ | ||
| + | |||
| + | Le caractère E9 est pourtant un caractère correcte en ASCII étendue | ||
| + | |||
| + | |||
| + | ## Solution | ||
| + | |||
| + | * Supprimer les caracères non ASCII | ||
| + | * Ou utiliser `unaccent` | ||
| + | |||
| + | ~~~code | ||
| + | unaccent ISO-8859-1 / | ||
| + | ~~~ | ||
tech/caractere_speciaux_unicode_utf8.1781860773.txt.gz · Dernière modification : de Jean-Baptiste
