Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #4338

Encodage caractères.

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Dominique <dominique.sextant@orange.fr.invalid>
Newsgroups fr.comp.lang.python
Subject Encodage caractères.
Date Wed, 24 Jun 2026 08:01:43 +0200
Organization A noiseless patient Spider
Lines 18
Message-ID <111frs7$2plfv$1@dont-email.me> (permalink)
Reply-To dominique.sextant@orange.fr.invalid
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Wed, 24 Jun 2026 06:01:44 +0000 (UTC)
Injection-Info dont-email.me; logging-data="2938367"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TOFG9b6xVbYm1kRG9ROenWQs1r8hFcqM="; posting-host="67ba8adb9e055088b037cb93f7440a86"
User-Agent Mozilla Thunderbird
Cancel-Lock sha1:QrpljUs5Hr4UrSuRSl6yUoSqlLM= sha256:oDmS7dl3u/G1JAS9RZTPWXWAh/uAVzO7k2bX8gCmaxA= sha1:rcJ3FPt2Op5pK1+/fcBQl2dn+v0=
Content-Language fr
Xref csiph.com fr.comp.lang.python:4338

Show key headers only | View raw


Bonjour,

J'ai écrit, à titre professionnel, un script Python assez simple qui se 
contente de modifier deux fichiers csv.

Je rencontre un problème qui me semble aléatoire d'encodage des fichiers 
csv. Parfois c'est de l'utf-8, parfois c'est de l'ISO 8859-15, parfois 
c'est du latin1. Bref, je tâtonne et je perds du temps.

Existe-t-il une solution pour identifier exactement l'encodage d'un 
fichier csv et l'ouvrir avec le bon 'encoding' ?

Merci et belle journée à tous,

-- 
Dominique
Esto quod es

Back to fr.comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Encodage caractères. Dominique <dominique.sextant@orange.fr.invalid> - 2026-06-24 08:01 +0200
  Re: Encodage caractères. Damien Wyart <damien.wyart@free.fr> - 2026-06-24 11:03 +0200
  Re: Encodage caractères. yves <yves@free.invalid> - 2026-06-24 13:48 +0000
    Re: Encodage caractères. Dominique <dominique.sextant@orange.fr.invalid> - 2026-06-25 17:43 +0200
      Re: Encodage caractères. yves <yves@free.fr.invalid> - 2026-06-25 20:19 +0200
        Re: Encodage caractères. Dominique <dominique.sextant@orange.fr.invalid> - 2026-06-26 03:11 +0200

csiph-web