Giter Club home page Giter Club logo

Comments (7)

yohanboniface avatar yohanboniface commented on July 21, 2024

Essaie d'encoder ton fichier en UTF-8 avant et dis-moi.
Faut qu'on voie comment être un peu plus malin sur l'encodage, mais pour le coup avec du CSV c'est pas évident d'être fin…

from addok.

sylvain-m avatar sylvain-m commented on July 21, 2024

En UTF8, le "è" devient "è" (et plus "�") dans le fichier en sortie.
Mais le géocodage a fonctionné !

[Edit]
En fait, c'est bon : quand je l'ouvre avec Excel, qui ne propose pas de choisir l'encodage, le fichier de sortie est mal encodé. Mais si je l'ouvre avec Calc, et que je spécifie UTF-8, c'est bon, le fichier est bien encodé.
Si ça peut faire avancer !
[/Edit]

from addok.

yohanboniface avatar yohanboniface commented on July 21, 2024

Oui, ça colle. Pour l'instant on ne supporte que l'UTF-8.

from addok.

sylvain-m avatar sylvain-m commented on July 21, 2024

OK.
Je sais pas si ça peut être utile, mais comme il y a beaucoup d'utilisateurs de Microsoft Excel (je sais, c'est mal), ça serait peut-être pratique, dans le fichier en sortie, d'utiliser cette ruse pour qu'excel charge directement en UTF-8 : http://www.ygi.ch/forcer-ouverture-fichier-csv-utf-8-excel/
(ajouter le caractère “BOM UTF-8″, non imprimable, au début du fichier)
Sinon, il serait aussi utile de préciser dans l'application que les données en entrée doivent être dans cet encodage.
Merci à vous.

Sylvain M.

from addok.

yohanboniface avatar yohanboniface commented on July 21, 2024

@sylvain-m je viens d'ajouter le BOM, à l'occasion tu peux retester depuis Excel voir s'il couine? Merci :)

from addok.

sylvain-m avatar sylvain-m commented on July 21, 2024

Testé ce jour, mais malheureusement, Excel (Office 2007 Pro me concernant) ne comprends toujours pas que c'est de l'UTF-8...
Mais bon, Open Office s'en sort très bien, donc pas de souci insurmontable.

from addok.

yohanboniface avatar yohanboniface commented on July 21, 2024

On peut maintenant préciser l'encodage: http://adresse.data.gouv.fr/csv/ :)

from addok.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.