Keet
Advanced Member
Netherlands
Joined: Apr 8, 2022
Post Count: 1554
Status:
Offline
|
|
Re: Anomalies caractères
|
Vous avez raison, il s'agit d'un problème d'encodage des caractères, l'un des problèmes les plus difficiles et les plus pénibles à résoudre. Le fait que vous utilisiez Windows ne facilite pas les choses, car MS pense toujours devoir faire les choses différemment des normes.
La première chose à déterminer est le codage du fichier CSV exporté. Ouvrez-le dans un éditeur capable d'afficher le codage et le jeu de caractères utilisés. Comparez-les au codage et au jeu de caractères utilisés par Excel. Ils ne sont manifestement pas identiques, mais même avec votre très ancienne version d'Excel, vous devriez pouvoir importer le fichier CSV en utilisant le codage que vous avez trouvé pour ce fichier.
Je travaille avec beaucoup de fichiers provenant de différents clients qui semblent tous utiliser des formats différents les uns des autres. Je résous ce problème en convertissant toujours le fichier que je reçois en UTF8 avant de le traiter. Une fois terminé, je le convertis dans le codage souhaité par le client. Vous pouvez faire quelque chose de similaire, mais peut-être dans l'autre sens : vérifiez quel encodage Excel utilise. Ouvrez le fichier CSV dans un éditeur qui vous permet d'enregistrer le fichier avec un encodage différent : l'encodage utilisé par Excel. Le mieux est d'utiliser un éditeur de texte brut pour cela, ou au moins un éditeur simple qui vous permet d'enregistrer le fichier en tant que texte brut avec l'encodage souhaité.
Si aucune des options proposées ne fonctionne, essayez LibreOffice Calc, qui est au moins une version actuelle et à jour par rapport à l'ancienne version d'Excel. Je vous conseille de le faire de toute façon, car vous pouvez également enregistrer vos feuilles de calcul au format MS .xslx.
Traduit avec DeepL.com (version gratuite)
[Engish] You are right that it's a character encoding issue, one of the most difficult and aggravating issues to solve. That you are on Windows doesn't make it easier since MS always thinks they have to do things differently from the standards.
What you first have to determine is the encoding of the CSV export file. Open it in an editor that can show you what the used encoding and character set is. Compare that to the encoding and character set that Excel uses. They are obviously not the same but even with your very old Excel version you might be able to import the csv using the encoding you found for the CSV file.
I work with a lot of files from different clients that all seem to use something different from each other. I solve that by always converting the file I received to UTF8 before processing the file. When finished I convert it to the encoding the client wants. You can do something similar but maybe the other way around: Check which encoding Excel uses. Open the CSV file in an editor that allows you to save the file with a different encoding: the encoding used by Excel. Your best bet is to use a plain text editor for this, or at least a simple editor that allows you to save the file as plain text with the desired encoding.
If none of the proposed options work try LibreOffice Calc, at least that is a current and up-to-date version compared to the very old Excel. I would advise to do that anyway, you can save spreadsheets in the MS .xslx format too.
ETA: On dirait que vous avez trouvé la solution !
(Looks like you solved it!)
----------------------------------------
Dodecagon.nl 1300+ 3D models, manuals, and projects
----------------------------------------
[Edit 1 times,
last edit by Keet at Oct 10, 2025, 10:52:08 AM]
|
[Oct 10, 2025, 10:47:52 AM]
|
|
[Link]
|
|